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
a5d38a9b
Commit
a5d38a9b
authored
21 years ago
by
Graham McVicker
Browse files
Options
Downloads
Patches
Plain Diff
return empty list instead of throwing in get_all_translateable_Exons when there is no Translation
parent
55098c4f
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
modules/Bio/EnsEMBL/Transcript.pm
+4
-4
4 additions, 4 deletions
modules/Bio/EnsEMBL/Transcript.pm
with
4 additions
and
4 deletions
modules/Bio/EnsEMBL/Transcript.pm
+
4
−
4
View file @
a5d38a9b
...
...
@@ -350,7 +350,7 @@ sub translation {
}
elsif
(
!
exists
$self
->
{'
translation
'}
and
defined
$self
->
adaptor
()
)
{
$self
->
{'
translation
'}
=
$self
->
adaptor
()
->
db
()
->
get_TranslationAdaptor
()
->
fetch_by_Transcript
(
$self
);
fetch_by_Transcript
(
$self
);
}
return
$self
->
{'
translation
'};
}
...
...
@@ -1103,7 +1103,7 @@ sub three_prime_utr {
Description: Returns a list of exons that translate with the
start and end exons truncated to the CDS regions.
Returntype : listref Bio::EnsEMBL::Exon
Exceptions :
If there is no Translation object
Exceptions :
throw if translation has invalid information
Caller : Genebuild, $self->translate()
=cut
...
...
@@ -1112,8 +1112,8 @@ sub three_prime_utr {
sub
get_all_translateable_Exons
{
my
(
$self
)
=
@_
;
my
$translation
=
$self
->
translation
or
throw
("
No translation attached to transcript object
");
#return an empty list if there is no translation (i.e. pseudogene)
my
$translation
=
$self
->
translation
or
return
[]
;
my
$start_exon
=
$translation
->
start_Exon
;
my
$end_exon
=
$translation
->
end_Exon
;
my
$t_start
=
$translation
->
start
;
...
...
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