Description Usage Arguments Value Author(s) Examples
View source: R/getFeatureSpace.R
Given a prediction variable, finds a feature set of class-informative principal components that explain variance differences between cell types.
1 | getFeatureSpace(object, pvar, correction = "fdr", sig = 1, reduction = "pca")
|
object |
A |
pvar |
Column in |
correction |
Multiple testing correction method used. Default: false discovery rate. See |
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" |
An Seurat
object along with a scPred
object stored in the @misc
slot
containing a data.frame of significant features with the following columns:
PC: Principal component
pValue: p-value obtained from Wilcoxon rank sum test
pValueAdj: Adjusted p-value according to correction
parameter
expVar: Explained variance for each principal component
cumExpVar: All principal components are ranked according to their significance and variance explained. This column contains the cumulative variance explained across the ranked principal components
Jose Alquicira Hernandez
1 2 | library(scPred)
pbmc_small <- getFeatureSpace(pbmc_small, "RNA_snn_res.0.8")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.