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
1735f4bb
Commit
1735f4bb
authored
Sep 10, 2010
by
Andreas Kusalananda Kähäri
Browse files
Change logic i translation() slightly.
parent
0c88d4e3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
10 deletions
+11
-10
modules/Bio/EnsEMBL/Transcript.pm
modules/Bio/EnsEMBL/Transcript.pm
+11
-10
No files found.
modules/Bio/EnsEMBL/Transcript.pm
View file @
1735f4bb
...
...
@@ -632,20 +632,21 @@ sub translation {
$self
->
{'
transcript_mapper
'}
=
undef
;
}
elsif
(
@
_
>
1
&&
defined
(
$self
->
{'
translation
'}
)
)
{
# Removing existing translation
}
elsif
(
@
_
>
1
)
{
if
(
defined
(
$self
->
{'
translation
'}
)
)
{
# Removing existing translation
$self
->
{'
translation
'}
->
transcript
(
undef
);
delete
(
$self
->
{'
translation
'}
);
$self
->
{'
translation
'}
->
transcript
(
undef
);
delete
(
$self
->
{'
translation
'}
);
$self
->
{'
cdna_coding_start
'}
=
undef
;
$self
->
{'
cdna_coding_end
'}
=
undef
;
$self
->
{'
cdna_coding_start
'}
=
undef
;
$self
->
{'
cdna_coding_end
'}
=
undef
;
$self
->
{'
coding_region_start
'}
=
undef
;
$self
->
{'
coding_region_end
'}
=
undef
;
$self
->
{'
transcript_mapper
'}
=
undef
;
$self
->
{'
coding_region_start
'}
=
undef
;
$self
->
{'
coding_region_end
'}
=
undef
;
$self
->
{'
transcript_mapper
'}
=
undef
;
}
}
elsif
(
!
exists
(
$self
->
{'
translation
'}
)
&&
defined
(
$self
->
adaptor
()
)
)
{
...
...
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