Skip to content

Commit

Permalink
Merge pull request #196 from uclahs-cds/czhu-fix-trace
Browse files Browse the repository at this point in the history
Save sample/patient-specific metapipeline logs
  • Loading branch information
zhuchcn authored May 10, 2024
2 parents 9c82b0d + 51d75c9 commit e8b5f29
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
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

0 comments on commit e8b5f29

Please sign in to comment.