ks_sig: ks_sig

View source: R/ks_sig.R

ks_sigR Documentation

ks_sig

Description

This function is used to select genes significant from the ks_test.

Usage

ks_sig(ks.pval.unadj)

Arguments

ks.pval.unadj

The output from ks_test which is a list of p-values from the KS test with gene names.

Value

List object containing the significant gene indices from the KS test, their adjusted p-values

Examples


data(scData)

# apply the ks_test function to subset genes belonging to the
# family of ZINB distributions.

library(BiocParallel)
scData_KS <- ks_test(counts=scData$counts, cexpr=scData$covariates, lib.size=scData$lib_size, BPPARAM=bpparam())

# apply the ks_sig function to select genes significant from
# the Kolmogorov Smirnov test.

scData_KS_sig <- ks_sig(scData_KS)

Malindrie/scShapes documentation built on Nov. 21, 2022, 8:58 a.m.