| Summary | Package variables | Synopsis | Description | General documentation | Methods |
use Bio::Matrix::IO;
my $parser = new Bio::Matrix::IO(-format => 'scoring',
-file => 'BLOSUM50');
my $matrix = $parser->next_matrix;
| next_matrix | Description | Code |
| write_matrix | Description | Code |
| next_matrix | code | next | Top |
Title : next_matrix Usage : my $matrux = $parser->next_matrix Function: parses a scoring matrix (BLOSUM,PAM styles) Returns : Bio::Matrix::Scoring |
| write_matrix | code | prev | next | Top |
Title : write_matrix Usage : $matio->write_matrix($matrix) Function: Write out a matrix in the BLOSUM/PAM format Returns : none Args : Bio::Matrix::Scoring |
| next_matrix | description | prev | next | Top |
my ($self) = @_; local ($_); my (@matrix,@cols,@rows,%extras,$inmatrix); while( defined ( $_ = $self->_readline ) ) { next if ( /^\s*$/); if( /^\#/ ) { if( $inmatrix ) { $self->_pushback($_); last; } if( m/Entropy\s+\=\s+(\S+)\,\s+}
Expected\s+\=\s+(\S+)/ox ) { $extras{'-entropy'} = $1; $extras{'-expected'} = $2; } elsif ( m/Expected\s+score\s+\=\s+(\S+)\,
\s+Entropy\s+\=\s+(\S+)/xo ){ $extras{'-entropy'} = $2; $extras{'-expected'} = $1; } elsif( m/(PAM\s+\d+)\s+substitution.+
scale\s+\=\s+(\S+)\s+\=\s+(\S+)/ox ) { $extras{'-matrix_name'} = $1; $extras{'-scale'} = $2; $extras{'-scale_value'} = $3; } elsif( /Blocks Database\s+\=\s+(\S+)/o ) { $extras{'-database'} = $1; } elsif( m/(\S+)\s+Bit\s+Units/ox ) { $extras{'-scale'} = $1; } elsif( m/Lowest score\s+\=\s+(\S+)\,\s+
| write_matrix | description | prev | next | Top |
my ($self,@args) = @_; $self->warn("cannot actually use this function yet - it isn't finished"); return undef;}
| FEEDBACK | Top |
| Mailing Lists | Top |
bioperl-l@bioperl.org - General discussion http://bioperl.org/MailList.shtml - About the mailing lists
| Reporting Bugs | Top |
http://bugzilla.bioperl.org/
| AUTHOR - Jason Stajich | Top |
| CONTRIBUTORS | Top |
| APPENDIX | Top |
| new | Top |
Title : new Usage : my $obj = new Bio::Matrix::IO::scoring(); Function: Builds a new Bio::Matrix::IO::scoring object Returns : an instance of Bio::Matrix::IO::scoring Args :