get_percluster_exp: Get cluster-specific expression matrix

Description Usage Arguments Value Examples

View source: R/get_percluster_exp.R

Description

This is to get the cluster-specific expresion matrix for further detecting cluster-specific marker genes, given the original scRNA-seq data (in the list format) and the clustering results.

Usage

1
get_percluster_exp(scExp, y, n.cores)

Arguments

scExp

the list of original block-wise expression matrices

y

the clustering results by running SHARP

n.cores

number of cores to be used. The default is (n-1) cores, where n is the number of cores in your local computer or server.

Value

a list of sparse matrices where each matrix corresponds to the expression matrix of each cluster

Examples

1
2
y = SHARP_unlimited(scExp)
smat = get_percluster_exp(scExp, y)

shibiaowan/SHARP documentation built on April 28, 2021, 1:56 p.m.