Bio::A...tistics(3pm)
π NAME π
Bio::Align::ProteinStatistics β bestie, this is the module that crunches protein alignment statistics, and it's mostly about distances. That's the whole vibe. β¨
π¦ SYNOPSIS π¦
okay so here's how you actually use it, copy-paste core:
use Bio::Align::ProteinStatistics;
use Bio::AlignIO;
my $in = Bio::AlignIO->new(-format => 'fasta',
-file => 'pep-104.fasaln');
my $aln = $in->next_aln;
my $pepstats = Bio::Align::ProteinStatistics->new();
$kimura = $protstats->distance(-align => $aln,
-method => 'Kimura');
print $kimura->print_matrix;
(yes, that's $pepstats up top and $protstats down below β that's literally how it's written, not me being messy π)
π DESCRIPTION π
This object is your little machine for generating all kinds of statistics from a protein alignment. And the main character of that whole operation? pairwise protein distances. That's where it shines. periodt. π
π REFERENCES π
- D_Kimura β Kimura, M. 1983. The Neutral Theory of Molecular Evolution. CUP, Cambridge.
π«Ά FEEDBACK π«Ά
π Mailing Lists
User feedback is, like, an integral part of the evolution of this and every other Bioperl module β fr fr. Send your comments and suggestions preferably to the Bioperl mailing list. Your participation is much appreciated. π₯Ή
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. The reason is lowkey genius: so 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. π
π 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 - Jason Stajich π
Email jason-at-bioperl.org
β¨ APPENDIX β¨
The rest of the documentation details each of the object methods. Internal methods are usually preceded with a _ β that underscore is your little signal, iykyk. π§
π new
Title : new
Usage : my $obj = Bio::Align::ProteinStatistics->new();
Function: Builds a new Bio::Align::ProteinStatistics object
Returns : an instance of Bio::Align::ProteinStatistics
Args :
π distance
Title : distance
Usage : my $distance_mat = $stats->distance(-align => $aln,
-method => $method);
Function: Calculates a distance matrix for all pairwise distances of
sequences in an alignment.
Returns : L<Bio::Matrix::PhylipDist> object
Args : -align => Bio::Align::AlignI object
-method => String specifying specific distance method
(implementing class may assume a default)
π available_distance_methods
Title : available_distance_methods
Usage : my @methods = $stats->available_distance_methods();
Function: Enumerates the possible distance methods
Returns : Array of strings
Args : none
π D - distance methods π
π₯ D_Kimura
Title : D_Kimura
Usage : my $matrix = $pepstats->D_Kimura($aln);
Function: Calculate Kimura protein distance (Kimura 1983) which
approximates PAM distance
D = -ln ( 1 - p - 0.2 * p^2 )
Returns : L<Bio::Matrix::PhylipDist>
Args : L<Bio::Align::AlignI>
π Data Methods π
π pairwise_stats
Title : pairwise_stats
Usage : $obj->pairwise_stats($newval)
Function:
Returns : value of pairwise_stats
Args : newvalue (optional)
reminder bestie: every option, value, default and return type up there is exactly as written in the source. Don't freestyle them. π
mwah, that's the whole page!! π this lil doc shipped as part of perl v5.32.1, dated 2021-08-15, under the title Bio::A...tistics(3pm) β go forth and calculate those distances, you gorgeous genius. π¦β¨π
π¦ 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