SyntheticControl: Generate synthetic control

Description Usage Arguments Details Value Examples

View source: R/synthetic_controls.r

Description

Input raw data and a vector of capture efficiencies of cells.

Usage

1
SyntheticControl(Data, BETA_vec)

Arguments

Data

A matrix of single-cell expression where rows are genes and columns are samples (cells). Data can be of class SummarizedExperiment (the assays slot contains the expression matrix and is named "Counts") or just matrix.

BETA_vec

A vector of capture efficiencies (probabilities) of cells.

Details

Simulate control data (based on Poisson distribution).

Value

List containing 2D matrix of synthetic control, BETA_vec used and lambda used in rpois.

Examples

1
2
3
4
data("EXAMPLE_DATA_list")
SC_output<-SyntheticControl(Data=
EXAMPLE_DATA_list$inputdata,
BETA_vec = EXAMPLE_DATA_list$inputbeta)

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