remove_signs: Remove signs including too few or too many genes.

View source: R/create_signs.R

remove_signsR Documentation

Remove signs including too few or too many genes.

Description

This function removes signs including too few or too many genes.

Usage

remove_signs(sce = NULL, min_ngenes = 2, max_ngenes = 1000)

Arguments

sce

A SingleCellExperiment object.

min_ngenes

Minimum number of genes, which must be greater than one.

max_ngenes

Maximum number of genes, which must be greater than one.

Value

A SingleCellExperiment object.

Examples

data(pbmc_eg)
data(human_GO_eg)
pbmcs <- list(GO = pbmc_eg)
S4Vectors::metadata(pbmcs$GO) <- list(sign = human_GO_eg[["BP"]])
pbmcs$GO <- remove_signs(sce = pbmcs$GO, min_ngenes = 2, max_ngenes = 1000)
# The results are stored in `metadata(pbmcs$GO)$sign`.


keita-iida/ASURAT documentation built on Nov. 23, 2022, 6:50 p.m.