Bio::M...lipDist(3pm)
π NAME π
Bio::Matrix::PhylipDist β a Phylip Distance Matrix object π¦
ok so first thing, bestie: the header on this page literally reads Bio::M...lipDist(3pm), and that's just the terminal being dramatic and truncating it β it comes from the User Contributed Perl Documentation, section 3pm. Same module, no cap. π
β¨ SYNOPSIS β¨
use Bio::Tools::Phylo::Phylip::ProtDist;
my $dist = Bio::Tools::Phylo::Phylip::ProtDist->new(
-file=>"protdist.out",
-program=>"ProtDist");
#or
my $dist = Bio::Tools::Phylo::Phylip::ProtDist->new(
-fh=>"protdist.out",
-program=>"ProtDist");
#get specific entries
my $distance_value = $dist->get_entry('ALPHA','BETA');
my @columns = $dist->get_column('ALPHA');
my @rows = $dist->get_row('BETA');
my @diagonal = $dist->get_diagonal();
#print the matrix in phylip numerical format
print $dist->print_matrix;
πΈ DESCRIPTION πΈ
It's a simple object for holding Distance Matrices, and those matrices get generated by these Phylip programs, bestie:
dnadistprotdistrestdist
Right now it handles parsing of the matrix without the data output option. That's the vibe. π
5
Alpha 0.00000 4.23419 3.63330 6.20865 3.45431
Beta 4.23419 0.00000 3.49289 3.36540 4.29179
Gamma 3.63330 3.49289 0.00000 3.68733 5.84929
Delta 6.20865 3.36540 3.68733 0.00000 4.43345
Epsilon 3.45431 4.29179 5.84929 4.43345 0.00000
π«Ά FEEDBACK π«Ά
π Mailing Lists
User feedback is literally an integral part of the evolution of this and other Bioperl modules, fr fr. Send your comments and suggestions preferably to one of the Bioperl mailing lists β 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. There are so many experienced and responsive experts who will be able to 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 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 - Shawn Hoon π
Email shawnh@fugu-sg.org
π CONTRIBUTORS π
Jason Stajich, jason-at-bioperl-dot-org
π APPENDIX π
The rest of the documentation details each of the object methods. Internal methods are usually preceded with a _. π«‘
β¨ new β¨
- Title:
new - Usage:
my $family = Bio::Matrix::PhylipDist->new(-file=>"protdist.out",
-program=>"protdist");
- Function: Constructor for PhylipDist Object
- Returns:
L<Bio::Matrix::PhylipDist>
β¨ get_entry β¨
- Title:
get_entry - Usage:
$matrix->get_entry(); - Function: returns a particular entry
- Returns: a float
- Arguments: string id1, string id2
β¨ get_row β¨
- Title:
get_row - Usage:
$matrix->get_row('ALPHA'); - Function: returns a particular row
- Returns: an array of float
- Arguments: string id1
β¨ get_column β¨
- Title:
get_column - Usage:
$matrix->get_column('ALPHA'); - Function: returns a particular column
- Returns: an array of floats
- Arguments: string id1
β¨ get_diagonal β¨
- Title:
get_diagonal - Usage:
$matrix->get_diagonal(); - Function: returns the diagonal of the matrix
- Returns: an array of float
- Arguments: string id1
β¨ print_matrix β¨
- Title:
print_matrix - Usage:
$matrix->print_matrix(); - Function: returns a string of the matrix in phylip format
- Returns: a string
- Arguments:
β¨ _matrix β¨
- Title:
_matrix - Usage:
$matrix->_matrix(); - Function: get/set for hash reference of the pointers to the value matrix
- Returns: hash reference
- Arguments: hash reference
β¨ names β¨
- Title:
names - Usage:
$matrix->names(); - Function: get/set for array ref of names of sequences
- Returns: an array reference
- Arguments: an array reference
β¨ program β¨
- Title:
program - Usage:
$matrix->program(); - Function: get/set for the program name generating this matrix
- Returns: string
- Arguments: string
β¨ _values β¨
- Title:
_values - Usage:
$matrix->_values(); - Function: get/set for array ref of the matrix containing distance values
- Returns: an array reference
- Arguments: an array reference
𧬠Bio::Matrix::MatrixI implementation π§¬
β matrix_id β
- Title:
matrix_id - Usage:
my $id = $matrix->matrix_id - Function: Get/Set the matrix ID
- Returns: scalar value
- Args: [optional] new id value to store
β matrix_name β
- Title:
matrix_name - Usage:
my $name = $matrix->matrix_name(); - Function: Get/Set the matrix name
- Returns: scalar value
- Args: [optional] new matrix name value
β column_header β
- Title:
column_header - Usage:
my $name = $matrix->column_header(0) - Function: Gets the column header for a particular column number
- Returns: string
- Args: integer
β row_header β
- Title:
row_header - Usage:
my $name = $matrix->row_header(0) - Function: Gets the row header for a particular row number
- Returns: string
- Args: integer
β column_num_for_name β
- Title:
column_num_for_name - Usage:
my $num = $matrix->column_num_for_name($name) - Function: Gets the column number for a particular column name
- Returns: integer
- Args: string
β row_num_for_name β
- Title:
row_num_for_name - Usage:
my $num = $matrix->row_num_for_name($name) - Function: Gets the row number for a particular row name
- Returns: integer
- Args: string
β num_rows β
- Title:
num_rows - Usage:
my $rowcount = $matrix->num_rows; - Function: Get the number of rows
- Returns: integer
- Args: none
β num_columns β
- Title:
num_columns - Usage:
my $colcount = $matrix->num_columns - Function: Get the number of columns
- Returns: integer
- Args: none
β row_names β
- Title:
row_names - Usage:
my @rows = $matrix->row_names - Function: The names of all the rows
- Returns: array in array context, arrayref in scalar context
- Args: none
β column_names β
- Title:
column_names - Usage:
my @columns = $matrix->column_names - Function: The names of all the columns
- Returns: array in array context, arrayref in scalar context
- Args: none
and that's the whole page, bestie π this one's from perl v5.32.1, dated 2021-08-15 β slay, go parse some distance matrices, you've got this π¦β¨π
π¦ 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