StrandFreqMatrix-class {contiBAIT} | R Documentation |
The strand information stored in this object is the ratio of Watson to Crick reads mapping to each contig in each library (cell). This should fall within the range (-1,1). This class simply extends matrix, but with additional validity checking.
StrandFreqMatrix(counts = matrix(double()))
counts |
a double matrix of read count ratios |
a StrandFreqMatrix
data("exampleWatsonFreq") data("exampleCrickFreq") frequencyMatrix <- sapply(1:ncol(exampleCrickFreq), function(colNum){exampleCrickFreq[,colNum] / exampleWatsonFreq[,colNum]}) StrandFreqMatrix(frequencyMatrix)