| create_signs | R Documentation | 
This function define signs for strongly and variably correlated gene sets.
create_signs(sce = NULL, min_cnt_strg = 2, min_cnt_vari = 2)
sce | 
 A SingleCellExperiment object.  | 
min_cnt_strg | 
 An integer for the cutoff value for strongly correlated gene sets.  | 
min_cnt_vari | 
 An integer for the cutoff value for variably correlated gene sets.  | 
A SingleCellExperiment object.
data(pbmc_eg)
data(human_GO_eg)
mat <- t(as.matrix(SummarizedExperiment::assay(pbmc_eg, "centered")))
pbmc_cormat <- cor(mat, method = "spearman")
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)
pbmcs$GO <- cluster_genesets(sce = pbmcs$GO, cormat = pbmc_cormat,
                             th_posi = 0.24, th_nega = -0.20)
pbmcs$GO <- create_signs(sce = pbmcs$GO, min_cnt_strg = 2, min_cnt_vari = 2)
# The results are stored in `metadata(pbmcs$GO)$sign_all`.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.