get_feature_genes | R Documentation |
Extract the genes chosen as features in cell type classification from a trained garnett_classifier
get_feature_genes(classifier, node = "root", convert_ids = FALSE,
db = NULL)
classifier |
Trained garnett_classifier - output from
|
node |
Character. The name of the parent node of the multinomial classifier you would like to view features for. If top level, use "root". |
convert_ids |
Logical. Should classifier IDs be converted to SYMBOL? |
db |
Bioconductor AnnotationDb-class package for converting gene IDs.
For example, for humans use org.Hs.eg.db. See available packages at
Bioconductor.
If |
A data.frame of coefficient values for each gene with non-zero coefficients in the classifier.
library(org.Hs.eg.db)
data(test_classifier)
featuresdf <- get_feature_genes(test_classifier, db=org.Hs.eg.db)
featuresdf2 <- get_feature_genes(test_classifier,
convert_ids = FALSE,
node = "T cells")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.