NAME
Bio::Matrix::PhylipDist - A Phylip Distance Matrix object
SYNOPSIS
use Bio::Tools::Phylo::Phylip::ProtDist;my $dist = Bio::Tools::Phylo::Phylip::ProtDist->new(-file=>"protdist.out",-program=>"ProtDist");#ormy $dist = Bio::Tools::Phylo::Phylip::ProtDist->new(-fh=>"protdist.out",-program=>"ProtDist");#get specific entriesmy $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 formatprint $dist->print_matrix;
DESCRIPTION
Simple object for holding Distance Matrices generated by the following Phylip programs:
1) dnadist 2) protdist 3) restdist
It currently handles parsing of the matrix without the data output option.
5Alpha 0.00000 4.23419 3.63330 6.20865 3.45431Beta 4.23419 0.00000 3.49289 3.36540 4.29179Gamma 3.63330 3.49289 0.00000 3.68733 5.84929Delta 6.20865 3.36540 3.68733 0.00000 4.43345Epsilon 3.45431 4.29179 5.84929 4.43345 0.00000
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.
[email protected] - General discussionhttp://bioperl.org/wiki/Mailing_lists - About the mailing lists
Support
Please direct usage questions or support issues to the mailing list:
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 - Shawn Hoon
Email [email protected]
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 : newUsage : my $family = Bio::Matrix::PhylipDist->new(-file=>"protdist.out",-program=>"protdist");Function: Constructor for PhylipDist ObjectReturns : L<Bio::Matrix::PhylipDist>
get_entry
Title : get_entryUsage : $matrix->get_entry();Function: returns a particular entryReturns : a floatArguments: string id1, string id2
get_row
Title : get_rowUsage : $matrix->get_row('ALPHA');Function: returns a particular rowReturns : an array of floatArguments: string id1
get_column
Title : get_columnUsage : $matrix->get_column('ALPHA');Function: returns a particular columnReturns : an array of floatsArguments: string id1
get_diagonal
Title : get_diagonalUsage : $matrix->get_diagonal();Function: returns the diagonal of the matrixReturns : an array of floatArguments: string id1
print_matrix
Title : print_matrixUsage : $matrix->print_matrix();Function: returns a string of the matrix in phylip formatReturns : a stringArguments:
_matrix
Title : _matrixUsage : $matrix->_matrix();Function: get/set for hash reference of the pointersto the value matrixReturns : hash referenceArguments: hash reference
names
Title : namesUsage : $matrix->names();Function: get/set for array ref of names of sequencesReturns : an array referenceArguments: an array reference
program
Title : programUsage : $matrix->program();Function: get/set for the program name generating thismatrixReturns : stringArguments: string
_values
Title : _valuesUsage : $matrix->_values();Function: get/set for array ref of the matrix containingdistance valuesReturns : an array referenceArguments: an array reference
Bio::Matrix::MatrixI implementation
matrix_id
Title : matrix_idUsage : my $id = $matrix->matrix_idFunction: Get/Set the matrix IDReturns : scalar valueArgs : [optional] new id value to store
matrix_name
Title : matrix_nameUsage : my $name = $matrix->matrix_name();Function: Get/Set the matrix nameReturns : scalar valueArgs : [optional] new matrix name value
column_header
Title : column_headerUsage : my $name = $matrix->column_header(0)Function: Gets the column header for a particular column numberReturns : stringArgs : integer
row_header
Title : row_headerUsage : my $name = $matrix->row_header(0)Function: Gets the row header for a particular row numberReturns : stringArgs : integer
column_num_for_name
Title : column_num_for_nameUsage : my $num = $matrix->column_num_for_name($name)Function: Gets the column number for a particular column nameReturns : integerArgs : string
row_num_for_name
Title : row_num_for_nameUsage : my $num = $matrix->row_num_for_name($name)Function: Gets the row number for a particular row nameReturns : integerArgs : string
num_rows
Title : num_rowsUsage : my $rowcount = $matrix->num_rows;Function: Get the number of rowsReturns : integerArgs : none
num_columns
Title : num_columnsUsage : my $colcount = $matrix->num_columnsFunction: Get the number of columnsReturns : integerArgs : none
row_names
Title : row_namesUsage : my @rows = $matrix->row_namesFunction: The names of all the rowsReturns : array in array context, arrayref in scalar contextArgs : none
column_names
Title : column_namesUsage : my @columns = $matrix->column_namesFunction: The names of all the columnsReturns : array in array context, arrayref in scalar contextArgs : none