-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use test data, start adding emma code
- Loading branch information
1 parent
001d10f
commit 3a7dee4
Showing
4 changed files
with
69 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# info params | ||
project = "Interon_rnaseq_hbc04916" | ||
PI = 'Donggi Paik, Ph.D.' | ||
experiment = '8 human cell lines from multiple origins. Treatment are 9 conditions including untreated.' | ||
aim = 'Determine treatment effect within cell line and in combination with TNF' | ||
analyst = 'Lorena Pantano, PhD' | ||
|
||
|
||
metadata_fn="../meta/hbc04916_metadata_bcbio.csv" | ||
se_object="../counts/bcbio-se.rds" | ||
cols_to_show=c("cell","treatment") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 12 additions & 6 deletions
18
inst/rmarkdown/templates/rnaseq/skeleton/reports/DEG/run_markdown.R
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,24 @@ | ||
library(rmarkdown) | ||
|
||
render_de <- function(subset_value, numerator, denominator){ | ||
rmarkdown::render(input = "DEG.Rmd", | ||
output_dir = "reports", | ||
render_de <- function(numerator, denominator, subset_value = NA, | ||
params_file = '../../params_de.R'){ | ||
|
||
rmarkdown::render(input = "./inst/rmarkdown/templates/rnaseq/skeleton/reports/DEG/DEG.Rmd", | ||
output_dir = "./inst/rmarkdown/templates/rnaseq/skeleton/reports/", | ||
output_format = "html_document", | ||
output_file = paste0('DE_', subset_value, '_', numerator, '_vs_', denominator, '.html'), | ||
output_file = ifelse(!is.na(subset_value), | ||
paste0('DE_', subset_value, '_', numerator, '_vs_', denominator, '.html'), | ||
paste0('DE_', numerator, '_vs_', denominator, '.html') | ||
), | ||
clean = TRUE, | ||
envir = new.env(), | ||
params = list( | ||
subset_value = subset_value, | ||
numerator = numerator, | ||
denominator = denominator | ||
denominator = denominator, | ||
params_file = params_file | ||
) | ||
) | ||
} | ||
|
||
render_de('HDFn', "TNF", "untreated") | ||
render_de("tumor", "normal") |