Skip to content

Commit

Permalink
Merge pull request #88 from nf-core/fix-software-version-reporting
Browse files Browse the repository at this point in the history
Fix software version reporting
  • Loading branch information
scwatts authored Aug 15, 2024
2 parents f0184f9 + 8a87ace commit 716e92c
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 6 deletions.
4 changes: 2 additions & 2 deletions modules/local/chord/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ process CHORD {
sink('versions.yml')
writeLines('"${task.process}":')
writeLines(paste(' CHORD:', packageVersion('CHORD')))
writeLines(paste(' mutSigExtractor:', packageVersion('mutSigExtractor')))
writeLines(paste(' chord:', packageVersion('CHORD')))
writeLines(paste(' mutsigextractor:', packageVersion('mutSigExtractor')))
sink()
"""

Expand Down
2 changes: 1 addition & 1 deletion modules/local/linxreport/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ process LINXREPORT {
cat <<-END_VERSIONS > versions.yml
"${task.process}":
R: \$(R --version | head -n1 | sed 's/^R version \\([0-9.]\\+\\).\\+/\\1/')
r: \$(R --version | head -n1 | sed 's/^R version \\([0-9.]\\+\\).\\+/\\1/')
linxreport: \$(linxreport.R --version)
END_VERSIONS
"""
Expand Down
2 changes: 2 additions & 0 deletions subworkflows/local/read_processing/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@ workflow READ_PROCESSING {
has_umis,
)

ch_versions = ch_versions.mix(MARKDUPS.out.versions)

// Sort into a tumor and normal channel
ch_markdups_out = MARKDUPS.out.bam
.branch { meta_markdups, bam, bai ->
Expand Down
2 changes: 2 additions & 0 deletions workflows/targeted.nf
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ workflow TARGETED {
hmf_data = PREPARE_REFERENCE.out.hmf_data
panel_data = PREPARE_REFERENCE.out.panel_data

ch_versions = ch_versions.mix(PREPARE_REFERENCE.out.versions)

// Set GRIDSS config
gridss_config = params.gridss_config !== null ? file(params.gridss_config) : hmf_data.gridss_config

Expand Down
4 changes: 1 addition & 3 deletions workflows/wgts.nf
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,7 @@ workflow WGTS {
ref_data = PREPARE_REFERENCE.out
hmf_data = PREPARE_REFERENCE.out.hmf_data

ch_versions = ch_versions.mix(
PREPARE_REFERENCE.out.versions,
)
ch_versions = ch_versions.mix(PREPARE_REFERENCE.out.versions)

// Set GRIDSS config
gridss_config = params.gridss_config !== null ? file(params.gridss_config) : hmf_data.gridss_config
Expand Down

0 comments on commit 716e92c

Please sign in to comment.