getDeaGenes | R Documentation |
Extracts differential expression
analysis results. Function getDeaGenes()
is a wrapper around
getDeaResultsDf()
and returns only gene names in a character vector.
getDeaGenes(
object,
across = getDefaultGrouping(object),
across_subset = NULL,
method_de = "wilcox",
max_adj_pval = NULL,
min_lfc = 0,
n_highest_lfc = NULL,
n_lowest_pval = NULL,
flatten = TRUE,
assay_name = activeAssay(object),
...
)
getDeaResultsDf(
object,
across = getDefaultGrouping(object),
across_subset = NULL,
relevel = FALSE,
method_de = "wilcox",
max_adj_pval = NULL,
min_lfc = NULL,
n_highest_lfc = NULL,
n_lowest_pval = NULL,
stop_if_null = TRUE,
assay_name = activeAssay(object),
...
)
object |
An object of class |
across |
Character value or NULL. Specifies the grouping variable of interest. Use |
across_subset |
Character vector or NULL. Specifies the particular groups
of interest the grouping variable specified in argument If set to NULL all of them are chosen. You can prefix groups you are NOT interested in with a '-'. (Saves writing if there are more groups you are interested in than groups you are not interested in.) Use |
method_de |
Character value. Denotes the method to according to which the de-analysis is performed.
Given to argument |
max_adj_pval |
Numeric value. Sets the threshold for adjusted p-values. All genes with adjusted p-values above that threshold are ignored. |
min_lfc |
Numeric value. Sets the threshold for average log fold change. All genes with an average log fold change below that threshold are ignored. |
n_highest_lfc |
Numeric value. Affects the total number of genes that are kept. See details. |
n_lowest_pval |
Numeric value. Affects the total number of genes that are kept. See details. |
assay_name |
Only relevant if the |
... |
Used to absorb deprecated arguments or functions. |
relevel |
Logical value. If set to TRUE the input order of |
The de-data.frame is processed such that the following steps are performed for every experimental group.
Discards genes with avg_logFC-values that are either infinite or negative
Discards genes with adjusted p-values above the threshold set with max_adj_pval
Discard genes with average log fold change below the treshold set with min_lfc
Slices the data.frame in order that for every experimental group:
the n genes with the highest avg_logFC-values are kept where n = n_highest_lfc
the n genes with the lowest p_val_adj-values are kept where n = n_lowest_pval
Arranges the genes according to the highest avg_logFC-values
A data.frame:
gene Character. The differentially expressed genes.
'across' Character. The grouping across which the analysis was performed. The variable/column name is
equal to the input for argument across
.
avg_logFC Numeric. The average log-fold change to which the belonging gene was differentially expressed..
p_val Numeric. The p-values.
p_val_adj Numeric. The adjusted p-values.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.