filterDE.Rd
Processes the results of findDE()
. See details.
filterDE( de_df, n_highest_FC = 100, n_lowest_pvalue = 100, across_subset = NULL, return = "data.frame" )
de_df | A data.frame containing information about differentially expressed genes. Must contain the variables:
Hint: Use the resulting data.frame of |
---|---|
n_highest_FC | Numeric value. Affects the number of genes that are kept. See details. |
n_lowest_pvalue | Numeric value. Affects the number of genes that are kept. See details. |
across_subset | Character vector or NULL. Specify the particular groups or clusters of interest the feature-variable
specified in argument Hint: Use |
return | Character value. Denotes the output type. One of 'data.frame', 'vector' or 'list |
Depends on input of arguemnt return
:
return
= 'data.frame': The filtered data.frame of de_df
with all it's variables.
return
= 'vector': A named vector of all genes that remain. Named by the experimental
group in which they were differentially expressed.
return
= 'list: A list named according to the experimental groups. Every slot of that list is
a character vector containing the differentially expressed genes of the respective experimental group.
filterDE()
processes the input by grouping the data.frame according to the unique
values of the cluster-variable such that the following steps are performed for every experimental
group. (With "genes" we refer to the rows (observations) of data
.)
Discards genes with avg_logFC-values that are either infinite or negative
Slices the data.frame in order that for every unique cluster of the cluster-variable:
the n genes with the highest avg_logFC-values are kept where n = n_highest_FC
the n genes with the lowest p_val_adj-values are kept where n = n_lowest_pvalue
Arranges the genes according to the highest avg_logFC-values