Skip to content

Commit

Permalink
fix information file path
Browse files Browse the repository at this point in the history
  • Loading branch information
lpantano committed Apr 24, 2024
1 parent 77a8624 commit 2540644
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
5 changes: 2 additions & 3 deletions inst/rmarkdown/templates/rnaseq/skeleton/DE/DEG.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ sanitize_datatable = function(df, ...) {
if (!is.na(params$subset_value)){
filenames = str_interp("${params$subset_value}_${params$numerator}_vs_${params$denominator}")
} else {
filenames = str_interp("${params$numerator}_vs_${params$denominator}")
filenames = str_interp("${params$numerator}_vs_${params$denominator}")
}
contrasts = c(column,params$numerator,params$denominator)
Expand Down Expand Up @@ -128,8 +128,6 @@ rdata = AnnotationDbi::select(org.Hs.eg.db, rownames(counts), 'SYMBOL', 'ENSEMBL
When performing differential expression analysis, it is important to ensure that any detected differences are truly a result of the experimental comparison being made and not any additional variability in the data.




```{r setup_RUV}
dds_before <- DESeqDataSetFromMatrix(counts, coldata, design = ~1)
Expand Down Expand Up @@ -159,6 +157,7 @@ pca1 + scale_color_cb_friendly()
```

```{r do_RUV}
# If you want to skip the code, just set up formula to be your model in the next chunk of code
design <- coldata[[column]]
names(design) <- coldata$name
diffs <- makeGroups(design)
Expand Down
8 changes: 4 additions & 4 deletions inst/rmarkdown/templates/rnaseq/skeleton/DE/run_markdown.R
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
library(rmarkdown)

render_de <- function(numerator, denominator, subset_value = NA,
params_file = '../../params_de.R'){
render_de <- function(numerator, denominator, subset_value = NA,
params_file = 'params_de.R'){

rmarkdown::render(input = "DEG.Rmd",
output_dir = "./",
output_format = "html_document",
output_file = ifelse(!is.na(subset_value),
output_file = ifelse(!is.na(subset_value),
paste0('DE_', subset_value, '_', numerator, '_vs_', denominator, '.html'),
paste0('DE_', numerator, '_vs_', denominator, '.html')
),
Expand Down

0 comments on commit 2540644

Please sign in to comment.