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
e971c11c
Commit
e971c11c
authored
15 years ago
by
edgrif
Browse files
Options
Downloads
Patches
Plain Diff
fix bug in traffic light bars...reintroduced some time....
parent
906f9b09
No related branches found
Branches containing commit
Tags
RELEASE_0-1-77
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/zmapWindow/zmapWindowColBump.c
+15
-24
15 additions, 24 deletions
src/zmapWindow/zmapWindowColBump.c
with
15 additions
and
24 deletions
src/zmapWindow/zmapWindowColBump.c
+
15
−
24
View file @
e971c11c
...
...
@@ -27,9 +27,9 @@
*
* Exported functions: See zmapWindow_P.h
* HISTORY:
* Last edited:
Nov 27
09:
13
2009 (edgrif)
* Last edited:
Dec 11
09:
48
2009 (edgrif)
* Created: Tue Sep 4 10:52:09 2007 (edgrif)
* CVS info: $Id: zmapWindowColBump.c,v 1.5
1
2009-1
1-30 10:54:48
edgrif Exp $
* CVS info: $Id: zmapWindowColBump.c,v 1.5
2
2009-1
2-16 11:08:36
edgrif Exp $
*-------------------------------------------------------------------
*/
...
...
@@ -2403,28 +2403,23 @@ static ColinearityType featureHomolIsColinear(ZMapWindow window, unsigned int m
ColinearityType
colinearity
=
COLINEAR_INVALID
;
int
diff
;
zMapAssert
(
zMapFeatureIsValidFull
((
ZMapFeatureAny
)
feat_1
,
ZMAPFEATURE_STRUCT_FEATURE
));
zMapAssert
(
zMapFeatureIsValidFull
((
ZMapFeatureAny
)
feat_2
,
ZMAPFEATURE_STRUCT_FEATURE
));
zMapAssert
(
zMapFeatureIsValidFull
((
ZMapFeatureAny
)
feat_1
,
ZMAPFEATURE_STRUCT_FEATURE
))
;
zMapAssert
(
zMapFeatureIsValidFull
((
ZMapFeatureAny
)
feat_2
,
ZMAPFEATURE_STRUCT_FEATURE
))
;
zMapAssert
(
feat_1
->
style_id
==
feat_2
->
style_id
)
;
zMapAssert
(
feat_1
->
original_id
==
feat_2
->
original_id
)
;
zMapAssert
(
feat_1
->
strand
==
feat_2
->
strand
)
;
zMapAssert
(
feat_1
->
feature
.
homol
.
strand
==
feat_2
->
feature
.
homol
.
strand
)
;
zMapAssert
(
feat_1
->
original_id
==
feat_2
->
original_id
);
zMapAssert
(
feat_1
->
strand
==
feat_2
->
strand
);
if
(
0
)
zMapLogQuark
(
feat_1
->
original_id
)
;
if
(
feat_1
->
x2
<
feat_2
->
x1
)
{
int
prev_end
=
0
,
curr_start
=
0
;
/* OK...THJS NEEDS CHANGING AS WELL...NOW I'VE MADE IT SO y1 < y2 always..... */
/* When revcomp'd homol blocks come in reversed order but their coords are not reversed
* by the revcomp so we must compare top of first with bottom of second etc. */
if
(
feat_1
->
feature
.
homol
.
y1
<
feat_1
->
feature
.
homol
.
y2
)
/* When match is from reverse strand of homol then homol blocks are in reversed order
* but coords are still _forwards_. Revcomping reverses order of homol blocks
* but as before coords are still forwards. */
if
(
feat_1
->
feature
.
homol
.
strand
==
ZMAPSTRAND_FORWARD
)
{
if
(
window
->
revcomped_features
)
prev_end
=
feat_2
->
feature
.
homol
.
y2
;
...
...
@@ -2436,22 +2431,18 @@ static ColinearityType featureHomolIsColinear(ZMapWindow window, unsigned int m
else
curr_start
=
feat_2
->
feature
.
homol
.
y1
;
}
#ifdef ED_G_NEVER_INCLUDE_THIS_CODE
else
{
if
(
window
->
revcomped_features
)
prev_end
=
feat_1
->
feature
.
homol
.
y
1
;
prev_end
=
feat_1
->
feature
.
homol
.
y
2
;
else
prev_end
=
feat_2
->
feature
.
homol
.
y
1
;
prev_end
=
feat_2
->
feature
.
homol
.
y
2
;
if
(
window
->
revcomped_features
)
curr_start
=
feat_2
->
feature
.
homol
.
y
2
;
curr_start
=
feat_2
->
feature
.
homol
.
y
1
;
else
curr_start
=
feat_1
->
feature
.
homol
.
y
2
;
curr_start
=
feat_1
->
feature
.
homol
.
y
1
;
}
#endif
/* ED_G_NEVER_INCLUDE_THIS_CODE */
/* Watch out for arithmetic here, remember that if block coords are one apart
* in the _right_ direction then it's a perfect match. */
...
...
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