Skip to content

Commit

Permalink
Merge pull request genomic-medicine-sweden#333 from genomic-medicine-…
Browse files Browse the repository at this point in the history
…sweden/332-fix-cdm-input-bug

332 fix cdm input bug
  • Loading branch information
mhkc authored Aug 9, 2024
2 parents 3efb3af + 0356809 commit f28fd4d
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 6 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Added

- Added `cdmDir` to config

### Fixed

- Fixed `--qc` argument filepath to be full filepath to output

### Changed

- Updated TbProfiler to version 6.3
Expand Down
3 changes: 2 additions & 1 deletion configs/nextflow.base.config
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ params {
args = ""
prefix = ""
bamDir = "bam"
cdmDir = "cdm_input"
vcfDir = "vcf"
cronCopy = false
useKraken = true
Expand Down Expand Up @@ -161,7 +162,7 @@ process {
}
withName: create_cdm_input {
container = "${params.containerDir}/bonsai-prp.sif"
publishDir = [ path: "${params.outdir}/${params.speciesDir}/cdm_input", mode: 'copy', overwrite: true ]
publishDir = [ path: "${params.outdir}/${params.speciesDir}/${params.cdmDir}", mode: 'copy', overwrite: true ]
}
withName: create_yaml {
container = "${params.containerDir}/bonsai-prp.sif"
Expand Down
3 changes: 2 additions & 1 deletion configs/nextflow.ci.config
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ params {
args = ""
prefix = ""
bamDir = "bam"
cdmDir = "cdm_input"
vcfDir = "vcf"
cronCopy = false
useKraken = false
Expand Down Expand Up @@ -150,7 +151,7 @@ process {
}
withName: create_cdm_input {
container = "${params.containerDir}/bonsai-prp.sif"
publishDir = [ path: "${params.outdir}/${params.speciesDir}/cdm_input", mode: 'copy', overwrite: true ]
publishDir = [ path: "${params.outdir}/${params.speciesDir}/${params.cdmDir}", mode: 'copy', overwrite: true ]
}
withName: create_yaml {
container = "${params.containerDir}/bonsai-prp.sif"
Expand Down
3 changes: 2 additions & 1 deletion configs/nextflow.dev.config
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ params {
args = ""
prefix = ""
bamDir = "bam"
cdmDir = "cdm_input"
vcfDir = "vcf"
// PIPELINE OPTIONS //
devMode = true
Expand Down Expand Up @@ -165,7 +166,7 @@ process {
}
withName: create_cdm_input {
container = "${params.containerDir}/bonsai-prp.sif"
publishDir = [ path: "${params.outdir}/${params.speciesDir}/cdm_input", mode: 'copy', overwrite: true ]
publishDir = [ path: "${params.outdir}/${params.speciesDir}/${params.cdmDir}", mode: 'copy', overwrite: true ]
}
withName: create_yaml {
container = "${params.containerDir}/bonsai-prp.sif"
Expand Down
3 changes: 2 additions & 1 deletion configs/nextflow.hopper.config
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ params {
args = ""
prefix = ""
bamDir = "bam"
cdmDir = "cdm_input"
vcfDir = "vcf"
// PIPELINE OPTIONS //
cronCopy = true
Expand Down Expand Up @@ -164,7 +165,7 @@ process {
}
withName: create_cdm_input {
container = "docker://clinicalgenomicslund/bonsai-prp:0.9.3"
publishDir = [ path: "${params.outdir}/${params.speciesDir}/cdm_input", mode: 'copy', overwrite: true ]
publishDir = [ path: "${params.outdir}/${params.speciesDir}/${params.cdmDir}", mode: 'copy', overwrite: true ]
}
withName: create_yaml {
container = "docker://clinicalgenomicslund/bonsai-prp:0.9.3"
Expand Down
3 changes: 2 additions & 1 deletion configs/nextflow.ngp.config
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ params {
args = ""
prefix = ""
bamDir = "bam"
cdmDir = "cdm_input"
vcfDir = "vcf"
cronCopy = false
useKraken = false
Expand Down Expand Up @@ -174,7 +175,7 @@ process {
}
withName: create_cdm_input {
container = "${params.containerDir}/bonsai-prp.sif"
publishDir = [ path: "${params.outdir}/${params.speciesDir}/cdm_input", mode: 'copy', overwrite: true ]
publishDir = [ path: "${params.outdir}/${params.speciesDir}/${params.cdmDir}", mode: 'copy', overwrite: true ]
}
withName: create_yaml {
container = "${params.containerDir}/bonsai-prp.sif"
Expand Down
2 changes: 1 addition & 1 deletion nextflow-modules/modules/cmd/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ process export_to_cdm {
echo ${sequencingRun} \\
--sample-id ${sampleName} \\
--assay ${species} \\
--qc ${qc} \\
--qc ${params.outdir}/${params.speciesDir}/${params.cdmDir}/${qc} \\
${limsID} > ${output}
"""

Expand Down

0 comments on commit f28fd4d

Please sign in to comment.