knitr::opts_chunk$set( collapse = TRUE, comment = "#>" )
library(RNAseqStat)
Enrichment analysis of GO will be done in this Step.
enrichGO_run(DEG_df, x = "log2FoldChange", y = "pvalue", dir = results_dir)
fl <- list.files("../dev/example_output/") modules <- fl[grep("3-EnrichGO.*.pdf",fl)] bitmap_l <- lapply(modules, function(x){ pdftools::pdf_render_page(glue::glue("../dev/example_output/{x}"), page = 1, dpi = 300) }) basenames <- gsub(pattern = "\\.pdf$", "", modules) names(bitmap_l) <- basenames tmp <- lapply(seq_along(bitmap_l), function(x){ png::writePNG(bitmap_l[[x]], glue::glue("{names(bitmap_l)[[x]]}.png")) })
knitr::include_graphics("3-EnrichGO_barplot-gene_Up_GO_enrichment.png")
knitr::include_graphics("3-EnrichGO_barplot-gene_Down_GO_enrichment.png")
knitr::include_graphics("3-EnrichGO_barplot-gene_diff_GO_enrichment.png")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.