Skip to content

Commit

Permalink
Update result directory configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisLeNezet committed Apr 24, 2024
1 parent 9d21a5d commit 4d02ff0
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 27 deletions.
2 changes: 1 addition & 1 deletion conf/steps/imputation.config
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
process {
withName: 'NFCORE_PHASEIMPUTE:PHASEIMPUTE:CONCAT_IMPUT:.*' {
publishDir = [
path: { "${params.outdir}/impute/concat" },
path: { "${params.outdir}/imputation/concat" },
mode: params.publish_dir_mode,
saveAs: { filename -> filename.equals('versions.yml') ? null : filename }
]
Expand Down
14 changes: 5 additions & 9 deletions conf/steps/imputation_glimpse1.config
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,7 @@ process {
"--buffer-size 20000"
].join(' ')
ext.prefix = { "${meta.id}_R${meta.region.replace(':','_')}.chunk" }
publishDir = [
enabled: false
]
publishDir = [ enabled: false ]
}

withName: 'NFCORE_PHASEIMPUTE:PHASEIMPUTE:VCF_IMPUTE_GLIMPSE1:GLIMPSE_PHASE' {
Expand All @@ -67,19 +65,17 @@ process {
].join(' ')
ext.prefix = { "${meta.id}_R${meta.region.replace(':','_')}.phase" }
ext.suffix = "bcf"
publishDir = [
enabled: false
]
publishDir = [ enabled: false ]
}

withName: 'NFCORE_PHASEIMPUTE:PHASEIMPUTE:VCF_IMPUTE_GLIMPSE1:INDEX_PHASE' {
publishDir = [
enabled: false
]
publishDir = [ enabled: false ]
}

withName: 'NFCORE_PHASEIMPUTE:PHASEIMPUTE:VCF_IMPUTE_GLIMPSE1:GLIMPSE_LIGATE' {
ext.prefix = { "${meta.id}_R${meta.region.replace(':','_')}.ligate" }
}

withName: 'NFCORE_PHASEIMPUTE:PHASEIMPUTE:VCF_IMPUTE_GLIMPSE1:INDEX_LIGATE' {
publishDir = [
path: { "${params.outdir}/imputation/glimpse1" }
Expand Down
19 changes: 11 additions & 8 deletions conf/steps/imputation_quilt.config
Original file line number Diff line number Diff line change
Expand Up @@ -20,20 +20,25 @@ process {
]
}

withName: 'NFCORE_PHASEIMPUTE:PHASEIMPUTE:MAKE_CHUNKS:GLIMPSE_CHUNK' {
withName: 'NFCORE_PHASEIMPUTE:PHASEIMPUTE:MAKE_CHUNKS:.*' {

ext.prefix = { "${meta.id}_${meta.chr}" }

publishDir = [
[
path: { "${params.outdir}/imputation/quilt/${task.process.tokenize(':')[-1].tokenize('_')[0].toLowerCase()}_chunk" },
mode: params.publish_dir_mode,
enabled: false
],


]
}

withName: 'NFCORE_PHASEIMPUTE:PHASEIMPUTE:MAKE_CHUNKS:GLIMPSE_CHUNK' {
ext.prefix = { "${meta.id}_${meta.chr}" }
}

withName: 'NFCORE_PHASEIMPUTE:PHASEIMPUTE:MAKE_CHUNKS:BCFTOOLS_INDEX' {
cpus = 2
memory = 400.MB
Expand Down Expand Up @@ -76,27 +81,25 @@ process {
cpus = 2
memory = 400.MB
maxRetries = 2
}

withName: 'NFCORE_PHASEIMPUTE:PHASEIMPUTE:IMPUTE_QUILT:.*' {
publishDir = [
[
path: { "${params.outdir}/quilt_impute/${task.process.tokenize(':')[-1].tokenize('_')[0].toLowerCase()}/convert" },
path: { "${params.outdir}/imputation/quilt/" },
mode: params.publish_dir_mode,
],
]
}

withName: 'NFCORE_PHASEIMPUTE:PHASEIMPUTE:IMPUTE_QUILT:QUILT_QUILT' {
ext.prefix = { "${meta.id}_R${meta.region.replace(':','_')}.impute" }
publishDir = [
[
path: { "${params.outdir}/imputation/quilt/${task.process.tokenize(':')[-1].tokenize('_')[0].toLowerCase()}" },
mode: params.publish_dir_mode,
],
]
publishDir = [enabled: false]
}

withName: 'NFCORE_PHASEIMPUTE:PHASEIMPUTE:IMPUTE_QUILT:INDEX1' {
ext.args = "--tbi"
publishDir = [enabled: false]
}

withName: 'NFCORE_PHASEIMPUTE:PHASEIMPUTE:IMPUTE_QUILT:BCFTOOLS_ANNOTATE' {
Expand Down
13 changes: 4 additions & 9 deletions conf/steps/validation.config
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ process {
path: { "${params.outdir}/validation/truth" },
mode: params.publish_dir_mode,
saveAs: { filename -> filename.equals('versions.yml') ? null : filename }
enabled: false
]
}
withName: 'NFCORE_PHASEIMPUTE:PHASEIMPUTE:GL_TRUTH:BCFTOOLS_MPILEUP' {
Expand Down Expand Up @@ -72,25 +73,19 @@ process {
withName: 'NFCORE_PHASEIMPUTE:PHASEIMPUTE:VCF_CONCORDANCE_GLIMPSE2:GLIMPSE2_CONCORDANCE' {
ext.prefix = { "${meta.id}.concordance" }
ext.args = "--out-r2-per-site"
publishDir = [
enabled: false
]
publishDir = [ enabled: false ]
}

withName: 'NFCORE_PHASEIMPUTE:PHASEIMPUTE:VCF_CONCORDANCE_GLIMPSE2:CONCATENATE' {
ext.suffix = { "txt" }
}

withName: 'NFCORE_PHASEIMPUTE:PHASEIMPUTE:VCF_CONCORDANCE_GLIMPSE2:GUNZIP' {
publishDir = [
enabled: false
]
publishDir = [ enabled: false ]
}

withName: 'NFCORE_PHASEIMPUTE:PHASEIMPUTE:VCF_CONCORDANCE_GLIMPSE2:ADD_COLUMNS' {
ext.prefix = { "${meta.id}_D${meta.depth}_P${meta.panel}_SNP" }
publishDir = [
enabled: false
]
publishDir = [ enabled: false ]
}
}

0 comments on commit 4d02ff0

Please sign in to comment.