NAME

MOODS::Tools - Some useful tools to work with parameters and results of PWM search.

Subroutines

readMatrix

  Title   : readMatrix
  Usage   : my $matrix = readMatrix("matrixfile");
  Function: reads a matrix from file
  Returns : matrix
  Args    : filename

printMatrix

  Title   : printMatrix
  Usage   : my $matrix = readMatrix("matrixfile");
                        printMatrix($matrix)
  Function: prints matrix
  Args    : matrix reference

reverseComplement

  Title   : reverseComplement
  Usage   : my $matrix2 = reverseComplement($matrix1);
  Args    : matrix reference

numResults

  Title   : numResults
  Usage   : my @results = MOODS::search(..);
                        $num_results = numResults(@results[0]);
  Function: calculates a number of matches
  Args    : an array reference to result array

getResult

  Title   : getResult
  Usage   : my @results = MOODS::search(..);
                        $num_results = numResults($results[0]);
                        foreach $i (0..$num_results) {
                                my ($pos, $score) = getResult($results[0], $i); 
                        }
  Function: gets a position score pair from a result array
  Args    : a result array and an index

printResults

  Title   : printResults
  Usage   : my @results = MOODS::search(..);
                        printResults($results[0]);
  Function: print a result array
  Args    : an array reference to result array

AUTHOR

Petri J Martinmaki, Janne H Korhonen

COPYRIGHT AND LICENSE

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/