Bio::M...::masta(3pm)
π Bio::M...::masta π
okay bestie, buckle up, because this is Bio::Matrix::PSM::IO::masta (3pm), a.k.a. the motif fasta format parser β straight from the User Contributed Perl Documentation. she's giving bioinformatics, she's giving matrices, she's giving β¨tab-delimited realnessβ¨. let's get into it π«Ά
πΈ NAME πΈ
Bio::Matrix::PSM::IO::masta β the motif fasta format parser. periodt. π
β¨ SYNOPSIS β¨
MASTA is a position frequency matrix format that's basically fasta's cousin who went to art school. It's got one ID row, just like fasta, and then the actual data, which is tab delimited, like so:
0.1 0.62 .017 0.11
0.22 0.13 0.54 0.11
Orrr, plot twist, A, C, G and T could be horizontally positioned instead β positioning gets automatically detected, no cap. π
lowkey important: please note masta will parse only DNA at the moment. that's it. that's the limit. don't come for her about it.
She will also convert a set of aligned sequences:
ACATGCAT ACAGGGAT ACAGGCAT ACCGGCAT
...into a PFM (SiteMatrix object). slay. π
And when writing, if you supply SEQ, she will write 10 random instances, which correctly represent the frequency and can be used as an input for weblogo creation purposes. iconic behavior honestly.
See Bio::Matrix::PSM::IO for detailed documentation on how to use the masta parser. π
π¦ DESCRIPTION π¦
Parser for meme. π (that's it, that's the description, we love a minimal queen)
π 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 responsive 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. give them the whole picture bestie, they're not mind readers π
Reporting Bugs π
Report bugs to the Bioperl bug tracking system to help us keep track of the bugs and their resolution. Bug reports can be submitted via the web:
https://github.com/bioperl/bioperl-live/issues
π AUTHOR - Stefan Kirov π
Email skirov@utk.edu β yes, the icon himself. π
π APPENDIX π
β new
- Title :
new - Usage :
my $psmIO = Bio::Matrix::PSM::IO->new(-format=> 'masta',
-file => $file,
-mtype => 'PWM');
- Function: Associates a file with the appropriate parser
- Throws :
- Example :
- Args : hash
- Returns :
"Bio::Matrix::PSM::$format"->new(@args);
π§ write_psm
- Title :
write_psm - Usage :
- Function: writes a pfm/pwm/raw sequence in a simple masta format
- Throws :
- Example :
- Args : SiteMatrix object, type (optional string:
PWM,SEQorPFM) - Returns :
πΈ next_matrix
- Title :
next_matrix - Usage :
my $matrix = $psmio->next_matrix; - Function: Alias of
next_psmfunction
π next_psm
- Title :
next_psm - Usage :
my $matrix=$psmio->next_psm; - Function: returns the next matrix in the stream
- Throws : If there is you mix different types, for example weights and frequencies occur in the same entry. You can mix weights, but these should be designated by different ID lines
- Example :
- Args :
- Returns :
Bio::Matrix::PSM::SiteMatrix
bestie realness check: don't mix your types in one entry unless you know what you're doing β weights need their own ID lines. the matrix said what she said. π
and that's the whole page, we ate and left no crumbs π
perl v5.32.1 Β· 2021-08-15 Β· mwah, xoxo, go parse some motifs πβ¨ππ¦
π¦ 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