Bio::A...::fasta(3pm)
π NAME π
Bio::AlignIO::fasta β the fasta MSA Sequence input/output stream, bestie β¨
It lives in the Bio::A...::fasta(3pm) manual, and it's literally your girl for reading and writing multiple sequence alignments in fasta format.
πΈ SYNOPSIS πΈ
Do not use this module directly. Use it via the Bio::AlignIO class.
okay so real talk β do NOT use this module directly π. You go through the Bio::AlignIO class instead, that's the whole vibe. No cap.
π¦ DESCRIPTION π¦
This object can transform Bio::SimpleAlign objects to and from fasta flat files. Periodt. π
But bestie, listen closely because this is the part people get wrong every single time: this is for the fasta alignment format, not for the FastA sequence analysis program. Different things, same-ish name, extremely confusing, I know π.
So if you're trying to process the alignments from FastA (FastX, FastN, FastP, tFastA, etc), you want the Bio::SearchIO module instead. Go there. Not here. π«Ά
π FEEDBACK π
β¨ Support β¨
Please direct usage questions or support issues to the mailing list:
bioperl-l@bioperl.org
rather than to the module maintainer directly. Fr fr β there are so many experienced and reponsive experts on that list who will be able look at the problem and quickly address it π. And please include a thorough description of the problem with code and data examples if at all possible, because a vague "it's broken" gives nobody anything to work with π.
β¨ 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
π AUTHORS π
Peter Schattner
π APPENDIX π
The rest of the documentation details each of the object methods. Internal methods are usually preceded with a _ β you know, the ones that are lowkey private but we're telling you about anyway π§
π next_aln π
- Title : next_aln
- Usage :
$aln = $stream->next_aln - Function: returns the next alignment in the stream.
- Returns :
Bio::Align::AlignIobject β returns0on end of file or on error - Args :
-width=> optional argument to specify the width sequence will be written (60chars by default)
See Bio::Align::AlignI
π write_aln π
- Title : write_aln
- Usage :
$stream->write_aln(@aln) - Function: writes the
$alnobject into the stream in fasta format - Returns :
1for success and0for error - Args :
Bio::Align::AlignIobject
See Bio::Align::AlignI
π _get_len π
- Title : _get_len
- Usage :
- Function: determine number of alphabetic chars
- Returns : integer
- Args : sequence string
π width π
- Title : width
- Usage :
$obj->width($newwidth)
$width = $obj->width;
- Function: Get/set width of alignment
- Returns : integer value of width
- Args : on set, new value (a scalar or undef, optional)
and that's the whole page, babe π«Ά this one's from perl v5.32.1, dated 2021-08-15, and yeah it really does say Bio::A...::fasta(3pm) up there in the corner β the truncation is serving cutesy mystery energy and we're obsessed π
β¨
π¦ where this page comes from
- debian bookworm: libbio-perl-perl 1.7.8-1 Β· Perl
- debian trixie: libbio-perl-perl 1.7.8-1 Β· Perl
- ubuntu jammy: libbio-perl-perl 1.7.8-1 Β· Perl
- ubuntu noble: libbio-perl-perl 1.7.8-1 Β· Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms