Bio::DB::EMBL(3pm)

πŸ’– Bio::DB::EMBL πŸ’–

okay bestie, so this is Bio::DB::EMBL β€” the database object interface for EMBL entry retrieval ✨ it lives in the Bio::DB::EMBL(3pm) part of the Perl manual (User Contributed Perl Documentation, no big deal πŸ’…).


🌸 SYNOPSIS 🌸

like, here's the whole vibe in code, fr fr:

  use Bio::DB::EMBL;

  $embl = Bio::DB::EMBL->new();

  # remember that EMBL_ID does not equal GenBank_ID!
  $seq = $embl->get_Seq_by_id('HSFOS'); # EMBL ID
  print "cloneid is ", $seq->id, "\n";

  # or changeing to accession number and Fasta format ...
  $embl->request_format('fasta');
  $seq = $embl->get_Seq_by_acc('J02231'); # EMBL ACC
  print "cloneid is ", $seq->id, "\n";

  # especially when using versions, you better be prepared
  # in not getting what what want
  eval {
      $seq = $embl->get_Seq_by_version('J02231.1'); # EMBL VERSION
  };
  print "cloneid is ", $seq->id, "\n" unless $@;

  # or ... best when downloading very large files, prevents
  # keeping all of the file in memory

  # also don't want features, just sequence so let's save bandwidth
  # and request Fasta sequence
  $embl = Bio::DB::EMBL->new(-retrievaltype => 'tempfile' ,
                            -format => 'fasta');
  my $seqio = $embl->get_Stream_by_id(['AC013798', 'AC021953'] );
  while( my $clone =  $seqio->next_seq ) {
        print "cloneid is ", $clone->id, "\n";
  }
heads up bestie 🚨 EMBL_ID does not equal GenBank_ID!! do not mix them up, i am begging πŸ™ˆ

✨ DESCRIPTION ✨

so what does it actually do πŸ‘€ it lets you dynamically retrieve sequence objects, Bio::Seq, straight out of the EMBL database, using the dbfetch script over at EBI:

<http://www.ebi.ac.uk/Tools/dbfetch/dbfetch>

the way it keeps things transparent is iconic honestly πŸ’… β€” it splits out host type (currently only ebi) from location (defaults to ebi). why? so that later on, more servers in different geographical locations can just get added in. future-proofing, we love to see it 🫢

also the functionality of this module is inherited from Bio::DB::DBFetch, which itself implements Bio::DB::WebDBSeqI. so it's giving family tree 🌳


πŸŽ€ FEEDBACK πŸŽ€

πŸ’Œ Mailing Lists

user feedback is, like, an integral part of the evolution of this and other Bioperl modules πŸ’– so send your comments and suggestions preferably to one of the Bioperl mailing lists. your participation is much appreciated, no cap.

  bioperl-l@bioperl.org                  - General discussion
  http://bioperl.org/wiki/Mailing_lists  - About the mailing lists

πŸ«‚ Support

okay so if you have usage questions or support issues, please direct them to the mailing list:

bioperl-l@bioperl.org

rather than to the module maintainer directly πŸ™ because there are so many experienced and reponsive experts who'll be able to look at the problem and quickly address it. and bestie, please include a thorough description of the problem with code and data examples if at all possible β€” it helps so much 😭

πŸ› Reporting Bugs

report bugs to the Bioperl bug tracking system so we can keep track of the bugs and their resolution ✨ bug reports can be submitted via the web:

https://github.com/bioperl/bioperl-live/issues


πŸ‘‘ AUTHOR - Heikki Lehvaslaiho πŸ‘‘

email Heikki Lehvaslaiho <heikki-at-bioperl-dot-org>


πŸ“– APPENDIX πŸ“–

the rest of the documentation goes into detail on each of the object methods πŸ’… internal methods are usually preceded with a _

πŸ¦‹ new

Title   : new
Usage   : $gb = Bio::DB::GenBank->new(@options)
Function: Creates a new genbank handle
Returns : New genbank handle
Args    : -delay   number of seconds to delay between fetches (3s)
NOTE: there are other options that are used internally πŸ‘€ (iykyk)

and that's the whole page, bestie πŸ’– this was Bio::DB::EMBL(3pm) from perl v5.32.1, dated 2021-02-23 🌸 go forth and fetch those sequences, you absolute main character πŸ‘‘βœ¨πŸ’…

πŸ“¦ where this page comes from