View source: R/drop_uninformative_genes.r
drop_uninformative_genes | R Documentation |
drop_uninformative_genes
drops uninformative genes in order to reduce
compute time and noise in subsequent steps. It achieves this through several
steps, each of which are optional:
Drop non-1:1 orthologs:
Removes genes that don't have 1:1 orthologs
with the output_species
("human" by default).
Drop non-varying genes:
Removes genes that don't vary across cells
based on variance deciles.
Drop non-differentially expressed genes (DEGs):
Removes genes that are not significantly differentially
expressed across cell-types (multiple DEG methods available).
drop_uninformative_genes(
exp,
level2annot,
mtc_method = "BH",
adj_pval_thresh = 1e-05,
convert_orths = FALSE,
input_species = NULL,
output_species = "human",
non121_strategy = "drop_both_species",
method = "homologene",
as_sparse = TRUE,
as_DelayedArray = FALSE,
return_sce = FALSE,
no_cores = 1,
verbose = TRUE,
...
)
exp |
Expression matrix with gene names as rownames. |
level2annot |
Array of cell types, with each sequentially corresponding a column in the expression matrix. |
mtc_method |
Multiple-testing correction method used by DGE step. See p.adjust for more details. |
adj_pval_thresh |
Minimum differential expression significance
that a gene must demonstrate across |
convert_orths |
If |
input_species |
Which species the gene names in |
output_species |
Which species' genes names to convert |
non121_strategy |
How to handle genes that don't have
1:1 mappings between
|
method |
R package to use for gene mapping:
|
as_sparse |
Convert |
as_DelayedArray |
Convert |
return_sce |
Whether to return the filtered results as an expression matrix or a SingleCellExperiment. |
no_cores |
Number of cores to parallelise across.
Set to |
verbose |
Print messages. #' @inheritParams orthogene::convert_orthologs |
... |
Arguments passed on to
|
exp Expression matrix with gene names as row names.
cortex_mrna <- ewceData::cortex_mrna()
# Use only a subset of genes to keep the example quick
cortex_mrna$exp <- cortex_mrna$exp[1:300, ]
## Convert orthologs at the same time
exp2_orth <- drop_uninformative_genes(
exp = cortex_mrna$exp,
level2annot = cortex_mrna$annot$level2class,
input_species = "mouse"
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.