pseudoreplicatesbymodel: Auxiliary function of sc_InSilicoCellsReplicatesObj function...

Description Usage Arguments Value See Also

View source: R/RcppExports.R

Description

Auxiliary function implemented in C++ making part of the sc_InSilicoCellsReplicatesObj function

Usage

1
pseudoreplicatesbymodel(rows, colums, alpha, vargenes, meangenes, positive, f, seed)

Arguments

rows

number of rows in list "expressionmatrix" within Sincell object

colums

number of colums in list "expressionmatrix" within Sincell object

alpha

Vector containing for each gene in "expressionmatrix" the proportion of cells where expression was detected above a given threshold level (parameter "no_expr" in function sc_InSilicoCellsReplicatesObj() )

vargenes

Vector containing for each gene in "expressionmatrix" the variance of the expression levels in those cells where expression was detected above a given threshold level (parameter "no_expr" in function sc_InSilicoCellsReplicatesObj() )

meangenes

Vector containing for each gene in "expressionmatrix" the average of the expression levels in those cells where expression was detected above a given threshold level (parameter "no_expr" in function sc_InSilicoCellsReplicatesObj() )

positive

Force the new matrix to be positive. 1 for TRUE, 0 for FALSE

f

R function rnorm

seed

seed integer for random generation

Value

A numeric matrix is returned as described in sc_InSilicoCellsReplicatesObj when method="lognormal-3parameters"

See Also

sc_InSilicoCellsReplicatesObj()


sincell documentation built on Nov. 8, 2020, 5:58 p.m.