R/select_top_de_genes.R
select_top_de_genes.RdSelect the top DE genes, ranked on either fold change or -log10(p-value)
select_top_de_genes( data, n = 10, fold_change = "fold_change", p_value = "p_value", groups = c(), rank_by = "fold_change", only_pos = FALSE )
| data | differential expression results |
|---|---|
| n | number of top DE genes to select |
| fold_change | column containing fold change data (x-axis) |
| p_value | column containing p-value data (y-axis is -log10(p_value)) |
| groups | column containing groups to get top DE genes per group (for example, cluster column) |
| rank_by | whether to rank by fold_change or p_value first |
| only_pos | only select features with positive fold change |
NULL#> NULL