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
8ed5b16b
Commit
8ed5b16b
authored
16 years ago
by
rds
Browse files
Options
Downloads
Patches
Plain Diff
remove debug and update pointers...
parent
4332deee
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/zmapWindow/zmapWindowDNA.c
+14
-13
14 additions, 13 deletions
src/zmapWindow/zmapWindowDNA.c
with
14 additions
and
13 deletions
src/zmapWindow/zmapWindowDNA.c
+
14
−
13
View file @
8ed5b16b
...
...
@@ -26,9 +26,9 @@
*
* Exported functions: See zmapWindow_P.h
* HISTORY:
* Last edited: Apr 2
1 16:29
2008 (rds)
* Last edited: Apr 2
5 08:51
2008 (rds)
* Created: Fri Oct 6 16:00:11 2006 (edgrif)
* CVS info: $Id: zmapWindowDNA.c,v 1.
8
2008-04-2
1 15:30:33
rds Exp $
* CVS info: $Id: zmapWindowDNA.c,v 1.
9
2008-04-2
5 09:31:44
rds Exp $
*-------------------------------------------------------------------
*/
...
...
@@ -516,15 +516,12 @@ static void searchCB(GtkWidget *widget, gpointer cb_data)
&&
(
match_list
=
zMapDNAFindAllMatches
(
dna
,
query_txt
,
strand
,
start
,
end
-
start
+
1
,
search_data
->
max_errors
,
search_data
->
max_Ns
,
TRUE
)))
{
ZMapFeatureContext
strand_separator_context
;
ZMapFeatureSet
new_feature_set
=
NULL
;
char
*
title
;
if
(
window_dna_debug_G
)
g_list_foreach
(
match_list
,
printCoords
,
dna
)
;
strand_separator_context
=
search_data
->
window
->
strand_separator_context
;
title
=
g_strdup_printf
(
"Matches for
\"
%s
\"
, (start = %d, end = %d, max errors = %d, max N's %d"
,
g_quark_to_string
(
search_data
->
block
->
original_id
),
search_data
->
search_start
,
search_data
->
search_end
,
...
...
@@ -544,7 +541,7 @@ static void searchCB(GtkWidget *widget, gpointer cb_data)
*/
/* Scrap that. Now it does, but I've left the other code around... */
if
(
strand_separator_context
)
if
(
search_data
->
window
->
strand_separator_context
)
{
ZMapFeatureAlignment
align
;
ZMapFeatureBlock
block
;
...
...
@@ -555,7 +552,7 @@ static void searchCB(GtkWidget *widget, gpointer cb_data)
/* Get the alignment from the current context by looking up using block's parent */
align
=
(
ZMapFeatureAlignment
)
zMapFeatureGetParentGroup
((
ZMapFeatureAny
)
search_data
->
block
,
ZMAPFEATURE_STRUCT_ALIGN
)
;
align
=
zMapFeatureContextGetAlignmentByID
(
strand_separator_context
,
align
=
zMapFeatureContextGetAlignmentByID
(
search_data
->
window
->
strand_separator_context
,
align
->
unique_id
);
/* Get the block matching the search_data->block */
block
=
zMapFeatureAlignmentGetBlockByID
(
align
,
search_data
->
block
->
unique_id
);
...
...
@@ -581,7 +578,7 @@ static void searchCB(GtkWidget *widget, gpointer cb_data)
ZMapFeatureContext
diff_context
=
NULL
,
erase_context
;
gboolean
is_master
=
FALSE
;
is_master
=
(
strand_separator_context
->
master_align
==
align
);
is_master
=
(
search_data
->
window
->
strand_separator_context
->
master_align
==
align
);
feature_set
=
my_feature_set_copy
(
feature_set
);
...
...
@@ -590,16 +587,17 @@ static void searchCB(GtkWidget *widget, gpointer cb_data)
align
=
(
ZMapFeatureAlignment
)
zMapFeatureAnyCopy
((
ZMapFeatureAny
)
align
);
erase_context
=
(
ZMapFeatureContext
)
zMapFeatureAnyCopy
((
ZMapFeatureAny
)
strand_separator_context
);
(
ZMapFeatureContext
)
zMapFeatureAnyCopy
((
ZMapFeatureAny
)
search_data
->
window
->
strand_separator_context
);
/* This is pretty important! */
erase_context
->
styles
=
strand_separator_context
->
styles
;
erase_context
->
styles
=
search_data
->
window
->
strand_separator_context
->
styles
;
zMapFeatureContextAddAlignment
(
erase_context
,
align
,
is_master
);
zMapFeatureAlignmentAddBlock
(
align
,
block
);
zMapFeatureBlockAddFeatureSet
(
block
,
feature_set
);
if
(
!
zMapFeatureContextErase
(
&
(
strand_separator_context
),
if
(
!
zMapFeatureContextErase
(
&
(
search_data
->
window
->
strand_separator_context
),
erase_context
,
&
diff_context
))
{
...
...
@@ -797,14 +795,17 @@ static void copy_to_new_featureset(gpointer key, gpointer hash_data, gpointer us
static
ZMapFeatureSet
my_feature_set_copy
(
ZMapFeatureSet
feature_set
)
{
ZMapFeatureSet
new_feature_set
=
NULL
;
gboolean
report_hash_size
=
FALSE
;
new_feature_set
=
(
ZMapFeatureSet
)
zMapFeatureAnyCopy
((
ZMapFeatureAny
)
feature_set
);
printf
(
"original hash is %d long
\n
"
,
g_hash_table_size
(
feature_set
->
features
));
if
(
report_hash_size
)
printf
(
"original hash is %d long
\n
"
,
g_hash_table_size
(
feature_set
->
features
));
g_hash_table_foreach
(
feature_set
->
features
,
copy_to_new_featureset
,
new_feature_set
);
printf
(
"new hash is %d long
\n
"
,
g_hash_table_size
(
new_feature_set
->
features
));
if
(
report_hash_size
)
printf
(
"new hash is %d long
\n
"
,
g_hash_table_size
(
new_feature_set
->
features
));
return
new_feature_set
;
}
...
...
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