Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
ensembl-gh-mirror
ensembl
Commits
a0626bf4
Commit
a0626bf4
authored
Mar 30, 2010
by
Andreas Kusalananda Kähäri
Browse files
Don't try to fetch alternative translations for a transcript if the
transcript does not have an associated adaptor.
parent
29c4a475
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
modules/Bio/EnsEMBL/Transcript.pm
modules/Bio/EnsEMBL/Transcript.pm
+3
-1
No files found.
modules/Bio/EnsEMBL/Transcript.pm
View file @
a0626bf4
...
...
@@ -625,7 +625,9 @@ sub translation {
sub
get_all_alternative_translations
{
my
(
$self
)
=
@_
;
if
(
!
defined
(
$self
->
{'
alternative_translations
'}
)
)
{
if
(
!
defined
(
$self
->
{'
alternative_translations
'}
)
&&
defined
(
$self
->
adaptor
()
)
)
{
my
$pa
=
$self
->
adaptor
()
->
db
()
->
get_TranslationAdaptor
();
$self
->
{'
alternative_translations
'}
=
$pa
->
fetch_all_by_Transcript
(
$self
);
...
...
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