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
32f77833
Commit
32f77833
authored
15 years ago
by
edgrif
Browse files
Options
Downloads
Patches
Plain Diff
Add new 'all matches with same name' option for blixem args.
parent
674376a7
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/zmapView/zmapView.c
+20
-15
20 additions, 15 deletions
src/zmapView/zmapView.c
src/zmapView/zmapView_P.h
+10
-9
10 additions, 9 deletions
src/zmapView/zmapView_P.h
with
30 additions
and
24 deletions
src/zmapView/zmapView.c
+
20
−
15
View file @
32f77833
...
...
@@ -27,9 +27,9 @@
*
* Exported functions: See ZMap/zmapView.h
* HISTORY:
* Last edited:
Oct 28 09:41
2009 (edgrif)
* Last edited:
Dec 16 10:33
2009 (edgrif)
* Created: Thu May 13 15:28:26 2004 (edgrif)
* CVS info: $Id: zmapView.c,v 1.17
3
2009-12-1
4
1
6:37:59 mh17
Exp $
* CVS info: $Id: zmapView.c,v 1.17
4
2009-12-1
6
1
1:04:07 edgrif
Exp $
*-------------------------------------------------------------------
*/
...
...
@@ -2886,17 +2886,20 @@ static void commandCB(ZMapWindow window, void *caller_data, void *window_data)
ZMapWindowCallbackCommandAlign
align_cmd
=
(
ZMapWindowCallbackCommandAlign
)
cmd_any
;
gboolean
status
;
GList
*
local_sequences
=
NULL
;
ZMapViewBlixemFlags
flags
=
BLIXEM_NO_FLAG
;
ZMapViewBlixemAlignSet
align_type
=
BLIXEM_NO_MATCHES
;
/* GHASTLY....ALL CHOICE BIT SHOULD BE IN WINDOW.... */
if
(
align_cmd
->
single_match
)
align_type
=
BLIXEM_FEATURE_SINGLE_MATCH
;
else
if
(
align_cmd
->
single_feature
)
align_type
=
BLIXEM_FEATURE_ALL_MATCHES
;
else
if
(
align_cmd
->
feature_set
)
align_type
=
BLIXEM_FEATURESET_MATCHES
;
else
if
(
align_cmd
->
multi_sets
)
align_type
=
BLIXEM_MULTI_FEATURESET_MATCHES
;
else
if
(
align_cmd
->
all_sets
)
align_type
=
BLIXEM_ALL_FEATURESET_MATCHES
;
if
(
align_cmd
->
obey_protein_featuresets
)
flags
|=
BLIXEM_OBEY_PROTEIN_SETS
;
if
(
align_cmd
->
obey_dna_featuresets
)
flags
|=
BLIXEM_OBEY_DNA_SETS
;
if
(
align_cmd
->
single_feature
)
flags
=
BLIXEM_SINGLE_FEATURE
;
if
((
status
=
zmapViewBlixemLocalSequences
(
view
,
align_cmd
->
feature
,
&
local_sequences
)))
{
if
(
!
view
->
sequence_server
)
...
...
@@ -2926,11 +2929,12 @@ static void commandCB(ZMapWindow window, void *caller_data, void *window_data)
{
/* Create the step list that will be used to fetch the sequences. */
view
->
step_list
=
zmapViewStepListCreate
(
NULL
,
processGetSeqRequests
,
NULL
)
;
zmapViewStepListAddStep
(
view
->
step_list
,
ZMAP_SERVERREQ_GETSEQUENCE
,
REQUEST_ONFAIL_CANCEL_THREAD
)
;
zmapViewStepListAddStep
(
view
->
step_list
,
ZMAP_SERVERREQ_GETSEQUENCE
,
REQUEST_ONFAIL_CANCEL_THREAD
)
;
/* Add the request to the step list. */
req_any
=
zMapServerRequestCreate
(
ZMAP_SERVERREQ_GETSEQUENCE
,
align_cmd
->
feature
,
local_sequences
,
flags
)
;
align_cmd
->
feature
,
local_sequences
,
align_type
)
;
request
=
zmapViewStepListAddServerReq
(
view
->
step_list
,
view_con
,
ZMAP_SERVERREQ_GETSEQUENCE
,
req_any
)
;
...
...
@@ -2943,7 +2947,8 @@ static void commandCB(ZMapWindow window, void *caller_data, void *window_data)
{
GPid
blixem_pid
;
if
((
status
=
zmapViewCallBlixem
(
view
,
align_cmd
->
feature
,
NULL
,
flags
,
&
blixem_pid
,
&
(
view
->
kill_blixems
))))
if
((
status
=
zmapViewCallBlixem
(
view
,
align_cmd
->
feature
,
NULL
,
align_type
,
&
blixem_pid
,
&
(
view
->
kill_blixems
))))
view
->
spawned_processes
=
g_list_append
(
view
->
spawned_processes
,
GINT_TO_POINTER
(
blixem_pid
))
;
}
...
...
This diff is collapsed.
Click to expand it.
src/zmapView/zmapView_P.h
+
10
−
9
View file @
32f77833
...
...
@@ -24,9 +24,9 @@
*
* Description:
* HISTORY:
* Last edited:
Oct
1 1
5:33
2009 (edgrif)
* Last edited:
Dec
1
4
1
3:18
2009 (edgrif)
* Created: Thu May 13 15:06:21 2004 (edgrif)
* CVS info: $Id: zmapView_P.h,v 1.5
2
2009-1
0-02 09:19:32
edgrif Exp $
* CVS info: $Id: zmapView_P.h,v 1.5
3
2009-1
2-16 11:05:58
edgrif Exp $
*-------------------------------------------------------------------
*/
#ifndef ZMAP_VIEW_P_H
...
...
@@ -41,14 +41,15 @@
#include
<ZMap/zmapXRemote.h>
typedef
enum
{
BLIXEM_NO_FLAG
=
0
,
BLIXEM_OBEY_DNA_SETS
=
1
<<
0
,
BLIXEM_OBEY_PROTEIN_SETS
=
1
<<
1
,
BLIXEM_SINGLE_FEATURE
=
1
<<
2
,
}
ZMapViewBlixemFlags
;
BLIXEM_NO_MATCHES
,
BLIXEM_FEATURE_SINGLE_MATCH
,
/* Single match of a single sequence. */
BLIXEM_FEATURE_ALL_MATCHES
,
/* All matches of a single sequence. */
BLIXEM_FEATURESET_MATCHES
,
/* All matches of all sequences of a set. */
BLIXEM_MULTI_FEATURESET_MATCHES
,
/* All matches of all sequences in several sets. */
BLIXEM_ALL_FEATURESET_MATCHES
/* All matches of all sequences in all sets. */
}
ZMapViewBlixemAlignSet
;
...
...
@@ -301,7 +302,7 @@ gboolean zmapAnyConnBusy(GList *connection_list) ;
char
*
zmapViewGetStatusAsStr
(
ZMapViewState
state
)
;
gboolean
zmapViewBlixemLocalSequences
(
ZMapView
view
,
ZMapFeature
feature
,
GList
**
local_sequences_out
)
;
gboolean
zmapViewCallBlixem
(
ZMapView
view
,
ZMapFeature
feature
,
GList
*
local_sequences
,
ZMapViewBlixem
Flags
flags
,
GPid
*
child_pid
,
gboolean
*
kill_on_exit
)
;
ZMapViewBlixem
AlignSet
align_set
,
GPid
*
child_pid
,
gboolean
*
kill_on_exit
)
;
ZMapFeatureContext
zmapViewMergeInContext
(
ZMapView
view
,
ZMapFeatureContext
context
);
gboolean
zmapViewDrawDiffContext
(
ZMapView
view
,
ZMapFeatureContext
*
diff_context
);
void
zmapViewEraseFromContext
(
ZMapView
replace_me
,
ZMapFeatureContext
context_inout
);
...
...
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