subSampleCountMatrix2: Subsample a count matrix to a specific number of reads,...

Description Usage Arguments Value

Description

Subsample a count matrix to a specific number of reads, improved version ensures that every read has the same probability of being dropped

Usage

1
subSampleCountMatrix2(mat, final.count = 1e+06, seed = NULL)

Arguments

mat

sparse matrix of class dgCMatrix

final.count

final number of reads the matrix should have

seed

seed for random number generator

Value

a new dgCMatrix subsample to the requested number of reads


barkasn/nbHelpers documentation built on Oct. 10, 2020, 9:46 p.m.