BSDE: Calculate the BSDE p-value for a SingleCellExperiment object.

View source: R/op_functions.R

BSDER Documentation

Calculate the BSDE p-value for a SingleCellExperiment object.

Description

Calculate the BSDE p-value for a SingleCellExperiment object.

Usage

BSDE(sce, perm_num = 200, unif_round_unit = 0.2, weight = 1, shrink = FALSE)

Arguments

sce

A SingleCellExperiment object. See SingleCellExperiment.

perm_num

The number of permutations for computing Monte Carlo p-value.

unif_round_unit

Bin width for empirical histogram (default: 0.2).

weight

Weight vector (non-negative, length=number of subjects) for subjects. Can be used for inverse probability weighting to control for confounding. Default: 1 for equal weights.

shrink

If TRUE, the range with zero count will be removed to cope with sparsity and speed up the computation. Use TRUE if extremely high expressions are present. Default: FALSE.

Value

a list of p-values


mqzhanglab/BSDE documentation built on March 20, 2022, 5:17 a.m.