StrandFreqMatrix: A class for storing a matrix of frequencies of Watson to...

Description Usage Arguments Value Examples

View source: R/AllClasses.R

Description

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.

Usage

1

Arguments

counts

a double matrix of read count ratios

Value

a StrandFreqMatrix

Examples

1
2
3
4
5
6
data("exampleWatsonFreq")
data("exampleCrickFreq")
frequencyMatrix <- sapply(1:ncol(exampleCrickFreq), 
function(colNum){exampleCrickFreq[,colNum] / exampleWatsonFreq[,colNum]})

StrandFreqMatrix(frequencyMatrix)

oneillkza/ContiBAIT documentation built on June 1, 2020, 5:49 a.m.