selectReadsFromMatrix: Select reads from multiple genes

View source: R/EMmultigene.R

selectReadsFromMatrixR Documentation

Select reads from multiple genes

Description

Select reads from multiple genes

Usage

selectReadsFromMatrix(
  dataMatrix,
  minReads = 50,
  addToReadName = "",
  preferBest = T
)

Arguments

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.

Value

Returns a dataMatrix with minReads number of rows, subsampled from the original dataMatrix.


jsemple19/EMclassifieR documentation built on Aug. 12, 2022, 2:57 p.m.