drop_uninformative_genes
first removes genes
that do not have 1:1 orthologs with humans.
drop_uninformative_genes( exp, level2annot, DGE_method = "limma", min_variance_decile = NULL, adj_pval_thresh = 1e-05, convert_orths = FALSE, input_species = NULL, output_species = "human", non121_strategy = "drop_both_species", 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 |
DGE_method | Which method to use for the Differential Gene Expression (DGE) step. |
min_variance_decile | If |
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
|
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. |
... | Additional arguments to be passed to the selected DGE method. |
exp Expression matrix with gene names as row names.
drop_uninformative_genes
then drops genes from an
SCT expression matrix
if they do not significantly vary between any cell types.
Makes this decision based on use of an ANOVA (implemented with limma
).
If the F-statistic for variation amongst type2 annotations
is less than a strict p-threshold, then the gene is dropped.
A very fast alternative to DGE methods is filtering by
min_variance_decile
,
which selects only genes with the top variance deciles.
#>#># 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" )#>#>#>#>#>#>#>#> Time difference of 0.1156094 secs