Skip to content
Snippets Groups Projects
Commit 1822d1b2 authored by Andreas Kusalananda Kähäri's avatar Andreas Kusalananda Kähäri
Browse files

In canonical_transcript(): Remove problematic verification code that may

result in infinite recursion.
parent 662ca185
No related branches found
No related tags found
No related merge requests found
......@@ -456,21 +456,6 @@ sub canonical_transcript {
assert_ref( $transcript, 'Bio::EnsEMBL::Transcript' );
# Make sure that it is actually one of the transcripts of this gene.
my $transcripts = $self->get_all_Transcripts();
my $canonical_transcript;
foreach my $t ( @{$transcripts} ) {
if ( $transcript->equals($t) ) {
$canonical_transcript = $t;
last;
}
}
if ( !defined($canonical_transcript) ) {
throw("The canonical transcript is not part of this gene");
}
# If there's already a canonical transcript, make sure it doesn't
# think it's still canonical.
if ( defined( $self->{'canonical_transcript'} ) ) {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment