Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
ensembl
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
1
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
ensembl
Commits
d8d316b7
Commit
d8d316b7
authored
21 years ago
by
Graham McVicker
Browse files
Options
Downloads
Patches
Plain Diff
bug fix: transcript inversions were not being detected correctly
parent
5f40ce7d
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
misc-scripts/chimp/Transcript.pm
+12
-4
12 additions, 4 deletions
misc-scripts/chimp/Transcript.pm
with
12 additions
and
4 deletions
misc-scripts/chimp/Transcript.pm
+
12
−
4
View file @
d8d316b7
...
...
@@ -114,7 +114,8 @@ sub check_iexons {
my
$itranscript
=
shift
;
my
$itranscript_array
=
shift
;
my
$prev_end
=
0
;
my
$prev_start
=
undef
;
my
$prev_end
=
undef
;
my
$transcript_seq_region
=
undef
;
my
$transcript_strand
=
undef
;
...
...
@@ -185,9 +186,12 @@ sub check_iexons {
}
if
(
$prev_end
>
$iexon
->
start
())
{
# something funny has happened, this exon starts before end of previous
# exon
# watch out for exons that come in the wrong order
if
((
defined
(
$prev_end
)
&&
$iexon
->
strand
()
==
1
&&
$prev_end
>
$iexon
->
start
())
||
(
defined
(
$prev_start
)
&&
$iexon
->
strand
()
==
-
1
&&
$prev_start
<
$iexon
->
end
()))
{
debug
("
inversion, splitting transcript
");
...
...
@@ -204,6 +208,9 @@ sub check_iexons {
return
check_iexons
(
$itranscript
,
$itranscript_array
);
}
$prev_end
=
$iexon
->
end
();
$prev_start
=
$iexon
->
start
();
if
(
!
defined
(
$transcript_strand
))
{
$transcript_strand
=
$iexon
->
strand
();
}
elsif
(
$transcript_strand
!=
$iexon
->
strand
())
{
...
...
@@ -405,6 +412,7 @@ sub make_Transcript {
-
STABLE_ID
=>
$iexon
->
stable_id
(),
-
SLICE
=>
$slice
);
#print STDERR "Adding exon " . $exon->stable_id . " to final transcript\n";
$transcript
->
add_Exon
(
$exon
);
#
...
...
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