Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Save sample/patient-specific metapipeline logs #196

Merged
merged 8 commits into from
May 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
+ More descriptive error messages on failure to identify output files
+ Add call-sCNA to `requested_pipelines` in `template.config`
+ Handling for SRC inputs
+ Save nextflow logs sample/patient-specific metapipeline. #187
### Changed
+ Use GitHub container registry CI/CD check
+ Calculate-targeted-coverage: `1.0.0-rc.2` -> `1.1.0`
Expand Down
15 changes: 15 additions & 0 deletions config/metapipeline_DNA_base.config
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,18 @@ process {
ext.fail_gracefully = true
}
}

trace {
enabled = true
file = "${params.metapipeline_log_output_dir}/nextflow-log/${params.patient}-${params.task_hash}/trace.txt"
}

report {
enabled = true
file = "${params.metapipeline_log_output_dir}/nextflow-log/${params.patient}-${params.task_hash}/report.html"
}

timeline {
enabled = true
file = "${params.metapipeline_log_output_dir}/nextflow-log/${params.patient}-${params.task_hash}/timeline.html"
}
3 changes: 3 additions & 0 deletions main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,8 @@ process call_metapipeline_DNA {
: "\${CURRENT_WORK_DIR:=`pwd`}"
: "\${SBATCH_RET:=-1}"

task_hash=\$(pwd | rev | cut -d '/' -f 1,2 | rev | sed 's/\\//_/')

NXF_WORK=${params.resolved_work_dir} \
nextflow run \
${moduleDir}/module/metapipeline_DNA.nf \
Expand All @@ -213,6 +215,7 @@ process call_metapipeline_DNA {
--normal_sample_count ${params.sample_counts[patient]['normal']} \
--tumor_sample_count ${params.sample_counts[patient]['tumor']} \
--use_original_intervals ${params.use_original_intervals} \
--task_hash \${task_hash} \
-params-file ${pipeline_params_json} \
-c ${moduleDir}/config/metapipeline_DNA_base.config
""" + limiter_wrapper_post
Expand Down