[ensembl-dev] retrieving appris tag from API
Tiago Grego
tgrego at ebi.ac.uk
Wed Nov 21 12:49:03 GMT 2018
Dear Duarte,
On a transcript you may indeed call is_canonical() and genecode_basic().
You can also call the method tsl() on a transcript object to get the
corresponding transcript support level.
You are correct that at this time there is no equivalent method to
directly access the appris tag. I will propose to create that method for
a future Ensembl release.
In the mean time, you may access the appris tag of a $transcript object
in the following way:
my $appris_attr = shift( $transcript->get_all_Attributes('appris') );
my $appris_tag = $appris_attr->value if $appris_attr;
$appris_tag will contain the corresponding value for the transcript
object, or be null if it does not exist.
Hope it helps.
Best regards,
Tiago
On 21/11/2018 11:57, Duarte Molha wrote:
> Hi
>
> I read here:
> https://www.ensembl.org/info/genome/genebuild/transcript_quality_tags.html
>
> That I can use appris tags to select principal transcripts from my genes
> of interest, but I have been looking at the documentation and can only find
> is_canonical method and genecode_basic() method
>
> How do I access the appris tag for my transcripts?
>
> Many thanks
>
> Duarte
>
>
> _______________________________________________
> Dev mailing list Dev at ensembl.org
> Posting guidelines and subscribe/unsubscribe info: http://lists.ensembl.org/mailman/listinfo/dev
> Ensembl Blog: http://www.ensembl.info/
>
More information about the Dev
mailing list