Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
seqtools
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
seqtools
Commits
04047689
Commit
04047689
authored
14 years ago
by
gb10
Browse files
Options
Downloads
Patches
Plain Diff
Fixed a bug where the exon view was not displaying exons that span more than the width of the view
parent
57e92813
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
exonview.c
+10
-7
10 additions, 7 deletions
exonview.c
with
10 additions
and
7 deletions
exonview.c
+
10
−
7
View file @
04047689
...
...
@@ -128,16 +128,16 @@ static gboolean drawExonIntron(const MSP *msp, DrawData *data, const gboolean is
const
int
coord1
=
convertDnaIdxToDisplayIdx
(
msp
->
qRange
.
min
,
data
->
seqType
,
frame
,
data
->
numFrames
,
data
->
displayRev
,
data
->
refSeqRange
,
NULL
);
const
int
coord2
=
convertDnaIdxToDisplayIdx
(
msp
->
qRange
.
max
,
data
->
seqType
,
frame
,
data
->
numFrames
,
data
->
displayRev
,
data
->
refSeqRange
,
NULL
);
if
(
valueWithinRange
(
coord1
,
data
->
displayRange
)
||
valueWithinRange
(
coord2
,
data
->
displayRange
))
IntRange
mspDisplayRange
;
intrangeSetValues
(
&
mspDisplayRange
,
coord1
,
coord2
);
/* sorts out which is min and max */
if
(
rangesOverlap
(
&
mspDisplayRange
,
data
->
displayRange
))
{
drawn
=
TRUE
;
/* The grid pos gives the left edge of the coord, so to be inclusive we draw to the max coord + 1 */
const
int
minCoord
=
min
(
coord1
,
coord2
);
const
int
maxCoord
=
max
(
coord1
,
coord2
)
+
1
;
int
xMin
=
convertBaseIdxToGridPos
(
minCoord
,
data
->
exonViewRect
,
data
->
displayRange
);
int
xMax
=
convertBaseIdxToGridPos
(
maxCoord
,
data
->
exonViewRect
,
data
->
displayRange
);
const
int
xMin
=
convertBaseIdxToGridPos
(
mspDisplayRange
.
min
,
data
->
exonViewRect
,
data
->
displayRange
);
const
int
xMax
=
convertBaseIdxToGridPos
(
mspDisplayRange
.
max
+
1
,
data
->
exonViewRect
,
data
->
displayRange
);
int
x
=
xMin
;
int
width
=
xMax
-
xMin
;
...
...
@@ -306,7 +306,10 @@ void calculateExonViewHeight(GtkWidget *exonView)
const
int
startCoord
=
convertDnaIdxToDisplayIdx
(
msp
->
qRange
.
min
,
bc
->
seqType
,
frame
,
bc
->
numFrames
,
bc
->
displayRev
,
&
bc
->
refSeqRange
,
NULL
);
const
int
endCoord
=
convertDnaIdxToDisplayIdx
(
msp
->
qRange
.
max
,
bc
->
seqType
,
frame
,
bc
->
numFrames
,
bc
->
displayRev
,
&
bc
->
refSeqRange
,
NULL
);
if
(
valueWithinRange
(
startCoord
,
displayRange
)
||
valueWithinRange
(
endCoord
,
displayRange
))
IntRange
mspDisplayRange
;
intrangeSetValues
(
&
mspDisplayRange
,
startCoord
,
endCoord
);
if
(
rangesOverlap
(
&
mspDisplayRange
,
displayRange
))
{
++
numExons
;
break
;
/* break inner loop and move to next sequence */
...
...
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