Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Z
zmap
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ensembl-gh-mirror
zmap
Commits
faec1b98
Commit
faec1b98
authored
19 years ago
by
edgrif
Browse files
Options
Downloads
Patches
Plain Diff
Change to FToI search routine interface.
parent
6dcec135
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/zmapWindow/zmapWindowSearch.c
+16
-12
16 additions, 12 deletions
src/zmapWindow/zmapWindowSearch.c
with
16 additions
and
12 deletions
src/zmapWindow/zmapWindowSearch.c
+
16
−
12
View file @
faec1b98
...
...
@@ -25,9 +25,9 @@
* Description:
* Exported functions: See zmapWindow_P.h
* HISTORY:
* Last edited:
Oct
7
1
1:41
2005 (
rds
)
* Last edited:
Nov
9
1
4:13
2005 (
edgrif
)
* Created: Fri Aug 12 16:53:21 2005 (edgrif)
* CVS info: $Id: zmapWindowSearch.c,v 1.
5
2005-1
0
-0
7
1
0:57:24 rds
Exp $
* CVS info: $Id: zmapWindowSearch.c,v 1.
6
2005-1
1
-0
9
1
5:00:26 edgrif
Exp $
*-------------------------------------------------------------------
*/
...
...
@@ -359,7 +359,13 @@ static void searchCB(GtkWidget *widget, gpointer cb_data)
SearchData
search_data
=
(
SearchData
)
cb_data
;
char
*
align_txt
,
*
block_txt
,
*
strand_txt
,
*
set_txt
,
*
feature_txt
;
GQuark
align_id
,
block_id
,
set_id
,
feature_id
;
#ifdef ED_G_NEVER_INCLUDE_THIS_CODE
ZMapStrand
strand
;
#endif
/* ED_G_NEVER_INCLUDE_THIS_CODE */
char
*
strand_spec
;
GList
*
search_result
;
...
...
@@ -450,28 +456,26 @@ static void searchCB(GtkWidget *widget, gpointer cb_data)
/* For Strand "*" means no strand or both strands. */
/* For strand, "." is ZMAPSTRAND_NONE which means search forward strand columns,
* "*" means search forward and reverse columns. */
strand_txt
=
(
char
*
)
gtk_entry_get_text
(
GTK_ENTRY
(
search_data
->
strand_entry
))
;
if
(
strand_txt
&&
strlen
(
strand_txt
)
==
0
)
strand
=
ZMAPSTRAND_NONE
;
strand
_spec
=
"."
;
else
if
(
strstr
(
strand_txt
,
"+"
))
strand
=
ZMAPSTRAND_FORWARD
;
strand
_spec
=
"+"
;
else
if
(
strstr
(
strand_txt
,
"-"
))
strand
=
ZMAPSTRAND_REVERSE
;
strand
_spec
=
"-"
;
else
strand
=
ZMAPSTRAND_NONE
;
strand
_spec
=
"*"
;
printf
(
"Search parameters - align: %s block: %s strand: %s set: %s feature: %s
\n
"
,
align_txt
,
block_txt
,
strand_txt
,
set_txt
,
feature_txt
)
;
if
((
search_result
=
zmapWindowFToIFindItemSetFull
(
search_data
->
window
->
context_to_item
,
align_id
,
block_id
,
set_id
,
strand
,
feature_id
)))
strand
_spec
,
feature_id
)))
{
ZMapFeatureAny
any_feature
;
...
...
@@ -616,7 +620,7 @@ static void setFilterDefaults(SearchData search_data)
if
(
feature
->
strand
==
ZMAPSTRAND_REVERSE
)
search_data
->
strand_txt
=
"-"
;
else
search_data
->
strand_txt
=
"
*
"
;
search_data
->
strand_txt
=
"
.
"
;
break
;
}
case
ZMAPFEATURE_STRUCT_FEATURESET
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment