plot_down: Plot top 'n' most significantly enriched pathways in the...

Description Usage Arguments Value See Also Examples

Description

Plot top n most significantly enriched pathways in the upward or downward direction.

Usage

1
2
3
plot_down(fgsea_out, padj_thresh = 0.05, n = 20)

plot_up(fgsea_out, padj_thresh = 0.05, n = 20)

Arguments

fgsea_out

Output of fgsea::fgsea() or fgsea_basic().

padj_thresh

Adjusted p-value threshold.

size_thresh

number of genes to show.

Value

A ggplot2::ggplot().

See Also

Other Arkady: check_sample_descs(), collapse_tech_reps(), deseq_contrasts(), deseq_pairs(), deseq_wide(), fgsea_basic(), plot_cond_paired_pearson(), plot_metrics_global(), plot_var_mean_ratio(), prep_gsea_input_gene_set(), prep_gsea_input_lfc(), prep_rd_input(), reconcile_names()

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
rs_genes <- arrow::read_feather(
  system.file("extdata", "rs_genes_draw_3_4.feather", package = "mirmisc")
)
rs_meta <- arrow::read_feather(
  system.file("extdata", "rs_meta_draw_3_4.feather", package = "mirmisc")
)
ddsx <- deseq_wide(rs_genes, rs_meta, compvar = "meta_draw")
dsq_contrasts <- deseq_contrasts(ddsx, compr = c("4", "3"))
prepped_gsea_input_lfc <- prep_gsea_input_lfc(dsq_contrasts)
prepped_gsea_input_gene_set <- prep_gsea_input_gene_set("C8")
fgs <- fgsea_basic(prepped_gsea_input_lfc, prepped_gsea_input_gene_set)
plot_down(fgs)
plot_up(fgs)

mirvie/mirmisc documentation built on Dec. 21, 2021, 7 p.m.