Skip to content

Commit

Permalink
record conda reports env, contrast, config per analysis
Browse files Browse the repository at this point in the history
  • Loading branch information
LMBradford committed Jan 3, 2024
1 parent fd1546d commit 40aab4a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions scripts/file_functions.R
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ set_up_paths <- function(params) {
paths$results <- file.path(paths$output, "analysis", results_location_arg)
paths$BMD_output <- file.path(paths$results, "BMD_and_biomarker_files")
paths$RData <- file.path(paths$results, "RData")
paths$record <- file.path(paths$results, "Pipeline_record")
paths$pathway_analysis <- file.path(paths$results, "pathway_analysis")
lapply(paths, function(x) if(!dir.exists(x)) dir.create(x, recursive = TRUE))
return(paths)
Expand Down
4 changes: 2 additions & 2 deletions scripts/render_DESeq2_report.parallel.R
Original file line number Diff line number Diff line change
Expand Up @@ -273,5 +273,5 @@ if (!is.na(params$group_facet)) {
system("rm -rf /tmp/intermediates_*")

# save config and contrasts file too
file.copy(file.path(paths$inputs, "config", "config.yaml"), paths$RData)
file.copy(file.path(paths$contrasts,"contrasts.txt"), paths$RData)
file.copy(file.path(paths$inputs, "config", "config.yaml"), paths$record)
file.copy(file.path(paths$contrasts,"contrasts.txt"), paths$record)
2 changes: 2 additions & 0 deletions workflow/modules/6-diffexp.smk
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ rule deseq_reports:
'''
rm DESeq2_complete
Rscript scripts/render_DESeq2_report.parallel.R {analysis_folder}
conda env export > output/analysis/{analysis_folder}/Pipeline_record/reports_env.yml
'''

onerror:
Expand Down

0 comments on commit 40aab4a

Please sign in to comment.