Skip to content

Commit

Permalink
made profiles add execution reports to output
Browse files Browse the repository at this point in the history
  • Loading branch information
zachary-foster committed Sep 11, 2023
1 parent 3fe4256 commit c91e4e0
Show file tree
Hide file tree
Showing 6 changed files with 64 additions and 201 deletions.
2 changes: 1 addition & 1 deletion assets/main_report/01-identification.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ sample_ids <- core_tree$tip.label[core_tree$tip.label %in% samp_meta$modified_id
colnames(ani_matrix) <- gsub(colnames(ani_matrix), pattern = "[.-]", replacement = "_")
rownames(ani_matrix) <- colnames(ani_matrix)
group_ani <- ani_matrix[rownames(ani_matrix) %in% core_tree$tip.label, colnames(ani_matrix) %in% core_tree$tip.label]
core_tree <- root(core_tree, names(which.min(colMeans(group_ani[sample_ids, ]))))
#core_tree <- root(core_tree, names(which.min(colMeans(group_ani[sample_ids, ]))))
# Set tip labels to taxon names for reference sequences
# TODO: need a more reliable way to get IDs
Expand Down
198 changes: 0 additions & 198 deletions assets/main_report/_main.Rmd

This file was deleted.

20 changes: 20 additions & 0 deletions conf/test.config
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,23 @@ params {
input = 'test/data/metadata_small.csv'
outdir = 'test/output_small'
}

report {
enabled = true
file = "${params.outdir}/pipeline_info/execution_report.html"
overwrite = true
}

timeline {
enabled = true
file = "${params.outdir}/pipeline_info/timeline_report.html"
overwrite = true
}

trace {
enabled = true
file = "${params.outdir}/pipeline_info/trace_report.tsv"
overwrite = true
fields = "task_id,hash,native_id,process,tag,status,exit,module,container,cpus,time,disk,memory,attempt,submit,start,complete,duration,realtime,queue,%cpu,%mem,rss,vmem,peak_rss,peak_vmem,rchar,wchar,syscr,syscw,read_bytes,write_bytes,vol_ctxt,inv_ctxt,workdir,scratch,error_action"
}

22 changes: 21 additions & 1 deletion conf/test_full.config
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Defines input files and everything required to run a full size pipeline test.
Use as follows:
nextflow run nf-core/plantpathsurveil -profile test_full,<docker/singularity> --outdir <OUTDIR>
nextflow run nf-core/pathogensurveillance -profile test_full,<docker/singularity> --outdir <OUTDIR>
----------------------------------------------------------------------------------------
*/
Expand All @@ -23,3 +23,23 @@ params {
input = 'test/data/metadata_full.csv'
outdir = 'test/output_full'
}

report {
enabled = true
file = "${params.outdir}/pipeline_info/execution_report.html"
overwrite = true
}

timeline {
enabled = true
file = "${params.outdir}/pipeline_info/timeline_report.html"
overwrite = true
}

trace {
enabled = true
file = "${params.outdir}/pipeline_info/trace_report.tsv"
overwrite = true
fields = "task_id,hash,native_id,process,tag,status,exit,module,container,cpus,time,disk,memory,attempt,submit,start,complete,duration,realtime,queue,%cpu,%mem,rss,vmem,peak_rss,peak_vmem,rchar,wchar,syscr,syscw,read_bytes,write_bytes,vol_ctxt,inv_ctxt,workdir,scratch,error_action"
}

21 changes: 20 additions & 1 deletion conf/test_medium.config
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Defines input files and everything required to run a full size pipeline test.
Use as follows:
nextflow run nf-core/plantpathsurveil -profile test_medium,<docker/singularity> --outdir <OUTDIR>
nextflow run nf-core/pathogensurveillance -profile test_medium,<docker/singularity> --outdir <OUTDIR>
----------------------------------------------------------------------------------------
*/
Expand All @@ -24,3 +24,22 @@ params {
outdir = 'test/output_medium'
}

report {
enabled = true
file = "${params.outdir}/pipeline_info/execution_report.html"
overwrite = true
}

timeline {
enabled = true
file = "${params.outdir}/pipeline_info/timeline_report.html"
overwrite = true
}

trace {
enabled = true
file = "${params.outdir}/pipeline_info/trace_report.tsv"
overwrite = true
fields = "task_id,hash,native_id,process,tag,status,exit,module,container,cpus,time,disk,memory,attempt,submit,start,complete,duration,realtime,queue,%cpu,%mem,rss,vmem,peak_rss,peak_vmem,rchar,wchar,syscr,syscw,read_bytes,write_bytes,vol_ctxt,inv_ctxt,workdir,scratch,error_action"
}

2 changes: 2 additions & 0 deletions workflows/pathogensurveillance.nf
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,8 @@ workflow PATHOGENSURVEILLANCE {
CUSTOM_DUMPSOFTWAREVERSIONS (
ch_versions.unique().collect(sort:true)
)

println "$workflow.manifest"

// MultiQC
//workflow_summary = WorkflowPathogensurveillance.paramsSummaryMultiqc(workflow, summary_params)
Expand Down

0 comments on commit c91e4e0

Please sign in to comment.