_dataLine

This method reads through the associated tab delimited file, and then returns a reference to an array of data that corresponds to the requested data line. A requestedRowNum of zero means the first data line. If no data line corresponds to the requested row number, it will return undef.

Usage:

my $lineRef = $self->_dataLine($num);

__currFileDataRow

This method is either used to retrieve the current data line number. It will return -1 if the file being read has had no rows read.

Usage:

my $currentRow = $self->__currFileDataRow;

_setCurrFileDataRow

This method is used to set the current data line number.

Usage:

$self->_setCurrFileDataRow($rowNum);

_arrayRefForLine

This protected method takes a scalar by reference, that is a line from a tab delimited file, and returns, by reference, an array that contains the chomped and split data from the line.

Usage:

my $lineRef = $self->_arrayRefForLine(\$line);

_metaDataRecorded

This protected method returns a boolean, to indicate whether meta data has been recorded for a particular row in the tab delimited file.

Usage :

if ($self->_metaDataRecorded($row)){ #blah }

_indicateMetaDataRecorded

This protected method records that meta data has been recorded for a particular row in the tab delimited file.

Usage :

$self->_indicateMetaDataRecordedRecorded($row);

columnNamesArrayRef

This polymorphic setter/getter method returns a reference to an array containing the column names (only of the data columns) from the original pcl file. If a new array reference is provided, it will rename the columns.

Usage:

my $columnNamesArrayRef = $self->columnNamesArrayRef;
$self->columnNamesArrayRef($lineRef);

_printRow

This method is used to print out a row of data to a file. It prints to the passed in file handle. It will only print information for those valid columns. If the $extraInfo variable is true (ie a non-zero value) it will print the extra info interleaved between each column of data. The extra info comes from the 2D hash whose reference is passed in. This method is implemented as required by its superclass, anySizeDataMatrix.

Usage :

$self->_printRow($fh, $row, $dataRef, $validColumnsArrayRef, $hasExtraInfo, $extraInfoHashRef);

AUTHOR

Gavin Sherlock

sherlock@genome.stanford.edu