getFeatureSpace: Get discriminant feature space

Description Usage Arguments Value Author(s) Examples

View source: R/getFeatureSpace.R

Description

Given a prediction variable, finds a feature set of class-informative principal components that explain variance differences between cell types.

Usage

1
getFeatureSpace(object, pvar, correction = "fdr", sig = 1, reduction = "pca")

Arguments

object

A seurat object

pvar

Column in meta.data slot containing the cell-type labels of each single cell

correction

Multiple testing correction method used. Default: false discovery rate. See p.adjust function

sig

Significance level to determine principal components explaining class identity

reduction

Name of reduction in Seurat objet to be used to determine the feature space. Default: "pca"

Value

An Seurat object along with a scPred object stored in the @misc slot containing a data.frame of significant features with the following columns:

Author(s)

Jose Alquicira Hernandez

Examples

1
2
library(scPred)
pbmc_small <- getFeatureSpace(pbmc_small, "RNA_snn_res.0.8")

powellgenomicslab/scPred documentation built on July 16, 2021, 12:14 a.m.