DownSampling: Binomial downsampling

Description Usage Arguments Value Examples

View source: R/RcppExports.R

Description

For each element in the Data, randomly generate a number using Binomial distribution with probability equal to the specific capture efficiency.

Usage

1
DownSampling(Data, BETA_vec)

Arguments

Data

raw count Data

BETA_vec

A vector of capture efficiencies of cells

Value

A matrix of binomial downsampling data.

Examples

1
2
3
data("EXAMPLE_DATA_list")
Downsample_data<-DownSampling(Data=EXAMPLE_DATA_list$inputdata
,BETA_vec = EXAMPLE_DATA_list$inputbeta)

bayNorm documentation built on Nov. 8, 2020, 8:25 p.m.