DownSampling: Binomial downsampling

View source: R/RcppExports.R

DownSamplingR Documentation

Binomial downsampling

Description

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

Usage

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

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

WT215/bayNorm documentation built on Sept. 2, 2022, 1:46 a.m.