selectReadsFromMatrix | R Documentation |
Select reads from multiple genes
selectReadsFromMatrix( dataMatrix, minReads = 50, addToReadName = "", preferBest = T )
dataMatrix |
A matrix containing the sample. dataMatrix [i,j] is the methylation value or bincount value of sample i at position j. |
minReads |
The minimum number of reads a matrix needs to have to be sampled from. |
addToReadName |
A string that will be added to the read names (row names) of the matrix |
preferBest |
If TRUE will sample reads in inverse proportion to the fraction of NAs in the read (takes more informative reads preferentially). This is calculated using the fourth power of the fraction of NAs in order to bias more strongly for better matrices. |
Returns a dataMatrix with minReads number of rows, subsampled from the original dataMatrix.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.