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

Modified previous bugfix in seq(): If stable IDs are not available, and

dbIDs are not available, use genomic start/end coordinates to figure out
whether "this" translation is the same as the canonical translation or
not.
parent 5e05c09e
No related branches found
No related tags found
No related merge requests found
......@@ -853,11 +853,21 @@ sub seq {
if ( defined( $canonical_translation->stable_id() )
&& defined( $self->stable_id() ) )
{
# Try stable ID.
$is_alternative =
( $canonical_translation->stable_id() ne $self->stable_id() );
} else {
} elsif ( defined( $canonical_translation->dbID() )
&& defined( $self->dbID() ) )
{
# Try dbID.
$is_alternative =
( $canonical_translation->dbID() != $self->dbID() );
} else {
# Resort to using geomic start/end coordinates.
$is_alternative = ( ($canonical_translation->genomic_start() !=
$self->genomic_start() )
|| ( $canonical_translation->genomic_end() !=
$self->genomic_end() ) );
}
if ($is_alternative) {
......
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