NAME
TFBS::Matrix - base class for matrix patterns, containing methods common to all
DESCRIPTION
TFBS::Matrix is a base class consisting of universal constructor called by its subclasses (TFBS::Matrix::*), and matrix manipulation methods that are independent of the matrix type. It is not meant to be instantiated itself.
FEEDBACK
Please send bug reports and other comments to the author.
AUTHOR - Boris Lenhard
Boris Lenhard <[email protected]> Modified by Eivind Valen [email protected]
APPENDIX
The rest of the documentation details each of the object methods. Internal methods are preceded with an underscore.
matrix
Title : matrixUsage : my $matrix = $pwm->matrix();$pwm->matrix( [ [12, 3, 0, 0, 4, 0],[ 0, 0, 0,11, 7, 0],[ 0, 9,12, 0, 0, 0],[ 0, 0, 0, 1, 1,12]]);Function: get/set for the matrix dataReturns : a reference to 2D array of integers(PFM) or floats (ICM, PWM)Args : none for get;a four line string, reference to 2D array, or a 2D piddle for set
pdl_matrix
Title : pdl_matrixUsage : my $pdl = $pwm->pdl_matrix();Function: access the PDL matrix used to store the actualmatrix data directlyReturns : a PDL object, aka a piddleArgs : none
revcom
Title : revcomUsage : my $revcom_pfm = $pfm->revcom();Function: create a matrix pattern object which is reverse complementof the current oneReturns : a TFBS::Matrix::* object of the same type as the onethe method acted uponArgs : none
rawprint
Title : rawprintUsage : my $rawstring = $pfm->rawprint);Function: convert matrix data to a simple tab-separated formatReturns : a four-line string of tab-separated integers or floatsArgs : none
prettyprint
Title : prettyprintUsage : my $prettystring = $pfm->prettyprint();Function: convert matrix data to a human-readable string formatReturns : a four-line string with nucleotides and aligned numbersArgs : none
STAMPprint
Title : STAMPprintUsage : my $STAMPstring = $pfm->STAMPprint();Function: Convert the matrix to STAMP readable formatReturns : A string of the matrix in a TRANSFAC like format for STAMPArgs : none
length
Title : lengthUsage : my $pattern_length = $pfm->length;Function: gets the pattern length in nucleotides(i.e. number of columns in the matrix)Returns : an integerArgs : none
randomize_columns
Title : randomize_columnsUsage : $pfm->randomize_columns();Function: Randomizes the columns of a matrix (in place).Returns : NothingArgs : none