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
0da4c893
Commit
0da4c893
authored
21 years ago
by
Graham McVicker
Browse files
Options
Downloads
Patches
Plain Diff
fixed bug: was trying to add some exons twice to same transcript
parent
934ff4df
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
misc-scripts/chimp/human2chimp.pl
+10
-13
10 additions, 13 deletions
misc-scripts/chimp/human2chimp.pl
with
10 additions
and
13 deletions
misc-scripts/chimp/human2chimp.pl
+
10
−
13
View file @
0da4c893
...
...
@@ -125,12 +125,12 @@ use Bio::EnsEMBL::Utils::Exception qw(throw info verbose);
my
$interim_transcript
=
transfer_transcript
(
$transcript
,
$mapper
,
$human_cs
);
my
$finished_transcripts
=
my
$finished_transcripts
=
create_transcripts
(
$interim_transcript
,
$slice_adaptor
);
foreach
my
$ftrans
(
@$finished_transcripts
)
{
if
(
$trans
cript
->
translation
())
{
print
STDERR
"
\n\n
",
$trans
cript
->
translate
->
seq
(),
"
\n\n
";
if
(
$
f
trans
->
translation
())
{
print
STDERR
"
\n\n
",
$
f
trans
->
translate
->
seq
(),
"
\n\n
";
}
else
{
print
STDERR
"
NO TRANSLATION LEFT
\n
";
}
...
...
@@ -218,9 +218,6 @@ sub transfer_transcript {
$chimp_exon
->
seq_region
(
$c
->
id
());
$chimp_cdna_pos
+=
$c
->
length
();
$cdna_exon_start
+=
$c
->
length
();
$chimp_transcript
->
add_Exon
(
$chimp_exon
);
}
}
else
{
#
...
...
@@ -417,16 +414,16 @@ sub create_transcripts {
# check the exons and split transcripts where exons are bad
my
$itranscripts
=
Transcript::
check_iexons
(
$itranscript
);
# if there are any exons left in this transcript add it to the list
if
(
@
{
$itranscript
->
get_all_Exons
()})
{
push
@$itranscripts
,
$itranscript
;
}
my
@finished_transcripts
;
foreach
my
$itrans
(
@$itranscripts
)
{
push
@finished_transcripts
,
Transcript::
make_Transcript
(
$itrans
,
$slice_adaptor
);
# if there are any exons left in this transcript add it to the list
if
(
@
{
$itrans
->
get_all_Exons
()})
{
push
@finished_transcripts
,
Transcript::
make_Transcript
(
$itrans
,
$slice_adaptor
);
}
else
{
info
("
Transcript
"
.
$itrans
->
stable_id
.
"
has no exons left
\n
");
}
}
return
\
@finished_transcripts
;
...
...
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