Unverified Commit cb7c8c69 authored by Marek Szuba's avatar Marek Szuba Committed by GitHub
Browse files

Merge pull request #382 from Ensembl/appris

appris method on Transcript
parents cd375d5a b0b32e75
......@@ -3182,6 +3182,23 @@ sub tsl {
return $tsl;
}
=head2 appris
Example : $appris = $transcript->appris();
Description : Returns the corresponding APPRIS tag
Returns : string
=cut
sub appris {
my $self = shift;
my @attributes = @{ $self->get_all_Attributes('appris') };
my $appris;
$appris = $attributes[0]->value if scalar(@attributes) > 0;
return $appris;
}
=head2 havana_transcript
Example : $havana_transcript = $transcript->havana_transcript();
......
......@@ -21,3 +21,4 @@
21 proj_parent_t projection parent transcript Stable identifier of the parent transcript this transcript was projected from (projection between different species and/or assemblies).
22 mirna_arm miRNA arm Hairpin arm from which this miRNA has come from
23 _stop_codon_rt Stop Codon Readthrough \N
24 appris APPRIS \N
......@@ -217,6 +217,8 @@ $tr->flush_Exons();
is( scalar( @{$tr->get_all_Exons()} ), 0, 'No exons left after flushing' );
is ( $tr->appris, 'principal1' , 'APPRIS tag fetched correctly');
# Fetch a fresh tr, check incomplete codon behavior
$tr = $ta->fetch_by_stable_id( "ENST00000300425" );
......
Markdown is supported
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