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
eeba8489
Commit
eeba8489
authored
May 05, 2010
by
Andreas Kusalananda Kähäri
Browse files
Do not throw on no adaptor in get_all_alternative_translations().
parent
5d3c1b93
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
modules/Bio/EnsEMBL/Transcript.pm
modules/Bio/EnsEMBL/Transcript.pm
+3
-4
No files found.
modules/Bio/EnsEMBL/Transcript.pm
View file @
eeba8489
...
...
@@ -625,10 +625,9 @@ sub translation {
sub
get_all_alternative_translations
{
my
(
$self
)
=
@_
;
if
(
!
exists
(
$self
->
{'
alternative_translations
'}
)
)
{
if
(
!
defined
(
$self
->
adaptor
()
)
)
{
throw
("
No adaptor attached
");
}
if
(
!
exists
(
$self
->
{'
alternative_translations
'}
)
&&
defined
(
$self
->
adaptor
()
)
)
{
my
$pa
=
$self
->
adaptor
()
->
db
()
->
get_TranslationAdaptor
();
my
@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