Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ensembl-gh-mirror
ensembl
Commits
eb595e64
Commit
eb595e64
authored
Oct 08, 2010
by
Dan Staines
Browse files
check to see if canonical translation is set before trying to access it
parent
708dc463
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
modules/Bio/EnsEMBL/Translation.pm
modules/Bio/EnsEMBL/Translation.pm
+3
-1
No files found.
modules/Bio/EnsEMBL/Translation.pm
View file @
eb595e64
...
...
@@ -849,7 +849,9 @@ sub seq {
my
$canonical_translation
=
$transcript
->
translation
();
my
$is_alternative
;
if
(
!
$canonical_translation
)
{
throw
"
Transcript does not have a canonical translation
";
}
if
(
defined
(
$canonical_translation
->
stable_id
()
)
&&
defined
(
$self
->
stable_id
()
)
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment