Hi Perlmonks,

I am interested in retrieving the transcript, 5 prime and 3 prime UTR of an Ensembl transcript identifier like ENST00000528762. I have searched in the web and have not found any script for auto downloading the desired sequences. Then I have tried with the following script. The script does not work and gives the cmd output indicating some problems in driver. I could not sort out the problem. Is it possible to retrieve the transcript in fasta format along with 5 prime and 3 prime UTR sequences of the transcript using any other perl code? I welcome suggestions from perlmonks.

Here goes the code x3.pl

#!/usr/bin/perl use warnings; use strict; use Bio::EnsEMBL::Registry; my $registry = 'Bio::EnsEMBL::Registry'; $registry->load_registry_from_db( -host => 'useastdb.ensembl.org', # alternatively 'useastdb.ensembl +.org' -user => 'anonymous'); my $stable_id = 'ENST00000528762'; my $transcript_adaptor = $registry->get_adaptor( 'Human', 'Core', 'Tr +anscript' ); my $transcript = $transcript_adaptor->fetch_by_stable_id($stable_id); print "\n Transcript: $transcript\n"; # UTR sequences are obtained via the five_prime_utr() and # three_prime_utr() methods: my $fiv_utr = $transcript->five_prime_utr('ENST00000528762'); my $thr_utr = $transcript->three_prime_utr('ENST00000528762'); print "\n 5' UTR: ", ( defined $fiv_utr ? $fiv_utr->seq() : "None" ), +"\n"; print "\n 3' UTR: ", ( defined $thr_utr ? $thr_utr->seq() : "None" ), +"\n"; exit;

I have got the output in cmd as follows:

C:\Users\x>cd d* C:\Users\x\Desktop>x3.pl install_driver(mysql) failed: Can't locate Mysql/Statement.pm in @INC +(@INC cont ains: C:/Perl/site/lib C:/Perl/lib .) at C:/Perl/lib/DBD/mysql.pm line + 12. Compilation failed in require at (eval 12) line 3. Perhaps a module that DBD::mysql requires hasn't been fully installed at C:/Perl/lib/Bio/EnsEMBL/Registry.pm line 1765. C:\Users\x\Desktop>

In reply to How can one retrieve the transcript, 5 prime and 3 prime UTR of an Ensembl identifier? by supriyoch_2008

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.