How to download an unspliced transcript for a given Ensembl ID using the perl API
1
0
Entering edit mode
7.0 years ago
Joseph Hughes ★ 3.0k

This is the code snippet I have so far:

my $gene_adaptor = $registry->get_adaptor( 'Human', 'Core', 'Gene' );

# Get the 'ensemblID' gene from human
my $gene = $gene_adaptor->fetch_by_gene_stable_id( 'ENSG00000099889');
print "GENE ", $gene->stable_id(), "\n";
print_DBEntries( $gene->get_all_DBEntries() );

foreach my $transcript ( @{ $gene->get_all_Transcripts() } ) {
  print "cDNA: ", $transcript->spliced_seq(), "\n";}

But how do you get the unspliced transcript (i.e. the Exons+Introns without 5' and 3' UTR)?

ensembl unspliced transcript • 1.4k views
ADD COMMENT
4
Entering edit mode
7.0 years ago
Emily 24k

There's no direct method for this. I would get the transcript slice, then the sequence of the slice.

print "unspliced: ", $transcript->slice->seq, "/n";
ADD COMMENT

Login before adding your answer.

Traffic: 2932 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6