项目作者: pilm-bioinformatics

项目描述 :
Differential expression analysis template
高级语言: R
项目地址: git://github.com/pilm-bioinformatics/templates-rmd-de.git
创建时间: 2019-05-15T21:23:27Z
项目社区:https://github.com/pilm-bioinformatics/templates-rmd-de

开源协议:MIT License

下载


templates-rmd-de

Differential expression analysis template

Docker

example

Quick start

Run with rmdCore

If you want only to get a copy of a template run:

  1. rmdCore::run_template("pilm-bioiformatics/templates-rmd-de", ".")

Example run with all paramters:

  1. install.packages("devtools")
  2. devtools::install_github("pilm-bioinformatics/rmdCore")
  3. library(rmdCore)
  4. download.file("https://github.com/pilm-bioinformatics/templates-rmd-de/raw/master/data/se.rds", "se.rds")
  5. run_template("pilm-bioinformatics/templates-rmd-de",
  6. "working_dir",
  7. options = list(se_file = "se.rds",
  8. output_dir = "test",
  9. contrast = "condition.treated_vs_untreated, type.paired-end_vs_single-read",
  10. metadata = c("condition", "type")
  11. ),
  12. output_file = "test/de.html")

Run example data:

  1. rmdCore::run_template("pilm-bioiformatics/templates-rmd-de", ".")
  2. setwd("templates-rmd-de")
  3. rmdCore::run_template(".", NULL, output_file = "docs/de.html")

Run with manually

Download the repository and get inside:

  1. cd pilm-bioiformatics/templates-rmd-de

Run insde R:

  1. rmarkdown::render("main.Rmd",
  2. params = list(se_file = "data/se.rds",
  3. output_dir = "test",
  4. contrast = "condition.treated_vs_untreated, type.paired-end_vs_single-read",
  5. output_file = "test/de.html")

Modify parameters to match your data.

Run with docker

  1. docker run --rm -v `pwd`:/mnt/analysis --user bioc \
  2. -w /mnt/analysis \
  3. lpantano/templates-rmd-de Rscript -e \
  4. 'rmdCore::run_template(".", NULL, output_file = "docs/de.html")'

And use any of the previous commands.