Bio::S...tafasta(3pm)

πŸ“¦
version 1.7.8 Β· 3 versions
, in debian bookworm, debian trixie, ubuntu jammy, ubuntu noble

πŸ’– Bio::SeqIO::metafasta πŸ’–

okay bestie, welcome to the <pink>Bio::S...tafasta(3pm)</pink> era ✨ this is the manual page for Bio::SeqIO::metafasta and she's giving metafasta sequence input/output stream realness, no cap. sit down, grab a boba, let's go πŸ§‹


🌸 NAME 🌸

Bio::SeqIO::metafasta β€” metafasta sequence input/output stream πŸ’…


✨ SYNOPSIS ✨

okay so listen, do NOT use this module directly β€” that's the rule, that's the vibe check, we don't do that here. you use it via the Bio::SeqIO class, periodt 🫢

use Bio::SeqIO;

# read the metafasta file
$io = Bio::SeqIO->new(-file => "test.metafasta",
                      -format => "metafasta" );

$seq = $io->next_seq;

πŸ¦‹ DESCRIPTION πŸ¦‹

so what does she even do? this object can transform Bio::Seq::Meta objects to and from metafasta flat file databases. iconic, honestly πŸ’–

for the sequence part, the code is an exact copy of the Bio::SeqIO::fasta module β€” like, literally copy-paste energy. the only added bits deal with meta data IO. that's it, that's the whole plot πŸŽ€

the format of a metafasta file is:

>test
ABCDEFHIJKLMNOPQRSTUVWXYZ
&charge
NBNAANCNJCNNNONNCNNUNNXNZ
&chemical
LBSAARCLJCLSMOIMCHHULRXRZ

where the sequence block is followed by one or several meta blocks 🌈

each meta block starts with the ampersand character '&' in the first column and is immediately followed by the name of the meta data, which continues until the new line. the meta data follows it. all characters, except new line, are important in meta data β€” like, every single one, don't be skipping anything πŸ‘‘


πŸ’Œ FEEDBACK πŸ’Œ

πŸ“¬ Mailing Lists

user feedback is an integral part of the evolution of this and other Bioperl modules. send your comments and suggestions preferably to one of the Bioperl mailing lists. your participation is much appreciated, fr fr 🫢

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

πŸ«‚ Support

please direct usage questions or support issues to the mailing list:

bioperl-l@bioperl.org

rather than to the module maintainer directly. many experienced and reponsive experts will be able look at the problem and quickly address it. please include a thorough description of the problem with code and data examples if at all possible πŸ’œ

πŸ› Reporting Bugs

report bugs to the Bioperl bug tracking system to help us keep track 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-at-bioperl-dot-org


πŸ“– APPENDIX πŸ“–

the rest of the documentation details each of the object methods. internal methods are usually preceded with a _ β€” iykyk 🀫

πŸ’« next_seq

Title   : next_seq
Usage   : $seq = $stream->next_seq()
Function: returns the next sequence in the stream
Returns : Bio::Seq object
Args    : NONE

πŸ’« write_seq

Title   : write_seq
Usage   : $stream->write_seq(@seq)
Function: writes the $seq object into the stream
Returns : 1 for success and 0 for error
Args    : array of 1 to n Bio::PrimarySeqI objects

πŸ’« width

Title   : width
Usage   : $obj->width($newval)
Function: Get/Set the line width for METAFASTA output
Returns : value of width
Args    : newvalue (optional)

and that's the whole page bestie!! πŸŽ€βœ¨ this lil manual is running on perl v5.32.1, dated 2021-08-15, and yes, she's still out here under the name Bio::S...tafasta(3pm) πŸ’– mwah, go read some sequences, you ate 🫢🌈

πŸ“¦ where this page comes from