downsampleData: downsample a data matrix

Description Usage Arguments Value

View source: R/goodnessOfFit.R

Description

downsample a data matrix

Usage

1
2
downsampleData(data, groupLabel, newTotalCounts = NULL,
  newQuantile = 0.25)

Arguments

data

the gene*cell count matrix

groupLabel

the label of each cell

newTotalCounts

the UMI count to after downsampling

newQuantile

the common UMI after downsampling is set by the quantile of the total UMI across cells before downsampling If newTotalCounts is set, this parameter will be ignored

Value

A list of two components data: this is the count matrix groupLable: this is the group label of cells


chenlab-sj/nbid documentation built on Nov. 4, 2019, 8:50 a.m.