Skip to content

Commit 2c2c7f6

Browse files
authored
Merge pull request #115 from UMCUGenetics/release/v2.3.0
Release/v2.3.0
2 parents 72a26d0 + 538e4d5 commit 2c2c7f6

3 files changed

Lines changed: 25 additions & 8 deletions

File tree

WES.config

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ process {
9393
path = "$params.outdir/QC/GenderCheck"
9494
mode = 'link'
9595
}
96-
}
96+
}
9797

9898
withLabel: CreateHSmetricsSummary {
9999
cpus = 2
@@ -112,8 +112,8 @@ process {
112112
time = { (1.ms * bam_file.size() / 1400) * task.attempt }
113113

114114
publishDir = [
115-
[path: "$params.outdir/exomedepth/UMCU", mode: 'link', pattern: 'UMCU*.vcf'],
116-
[path: "$params.outdir/exomedepth/HC", mode: 'link', pattern: 'HC*.vcf'],
115+
[path: "$params.outdir/exomedepth/UMCU", mode: 'link', pattern: '*_UMCU_*.vcf'],
116+
[path: "$params.outdir/exomedepth/HC", mode: 'link', pattern: '*_HC_*.vcf'],
117117
[path: "$params.outdir/exomedepth/logs", mode: 'link', pattern: '*.log'],
118118
[path: "$params.outdir/exomedepth/igv_tracks", mode: 'link', pattern: '*.igv']
119119
]
@@ -191,17 +191,24 @@ process {
191191
time = { 1.m * task.attempt }
192192
}
193193

194-
withLabel: GATK_3_8_1_0_gf15c1c3ef_CombineVariants {
194+
withLabel: FranklinVCF {
195195
cpus = 2
196196
memory = { 5.GB * task.attempt }
197-
time = { (1.ms * vcf_files.sum{it.size()} / 450) * task.attempt }
197+
time = { 10.m * task.attempt }
198198

199199
publishDir {
200200
path = "$params.outdir"
201201
mode = 'link'
202+
saveAs = { filename -> filename.replace('.franklin.vcf', '.vcf')}
202203
}
203204
}
204205

206+
withLabel: GATK_3_8_1_0_gf15c1c3ef_CombineVariants {
207+
cpus = 2
208+
memory = { 5.GB * task.attempt }
209+
time = { (1.ms * vcf_files.sum{it.size()} / 450) * task.attempt }
210+
}
211+
205212
withLabel: GATK_3_8_1_0_gf15c1c3ef_HaplotypeCaller {
206213
cpus = 2
207214
memory = { 10.GB * task.attempt }
@@ -228,6 +235,7 @@ process {
228235
publishDir {
229236
path = "$params.outdir/single_sample_vcf"
230237
mode = 'link'
238+
saveAs = { filename -> filename.replace('.franklin.vcf', '.vcf')}
231239
}
232240
}
233241

@@ -515,3 +523,9 @@ profiles {
515523
docker.runOptions = '-v /Users:/Users'
516524
}
517525
}
526+
527+
nextflow {
528+
enable {
529+
moduleBinaries = true
530+
}
531+
}

WES.nf

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ include { SampleUDFDx as ClarityEpp_SampleGender } from './CustomModules/Clarity
106106
udf: 'Dx Geslacht', column_name: 'Gender', clarity_epp_path: params.clarity_epp_path
107107
)
108108
include { CompareGender } from './CustomModules/GenderCheck/CompareGender.nf'
109+
include { FranklinVCF } from './CustomModules/FranklinVCF/FranklinVCF.nf'
109110

110111

111112
def fastq_files = extractFastqPairFromDir(params.fastq_path)
@@ -146,8 +147,10 @@ workflow {
146147
)
147148
GATK_VariantFiltration(GATK_HaplotypeCaller.out)
148149
GATK_CombineVariants(GATK_VariantFiltration.out.groupTuple())
149-
GATK_SingleSampleVCF(GATK_CombineVariants.out.combine(
150-
Sambamba_Merge.out.map{sample_id, bam_file, bai_file -> [sample_id]})
150+
FranklinVCF(GATK_CombineVariants.out)
151+
GATK_SingleSampleVCF(
152+
FranklinVCF.out.map{id, vcf_file -> [id, vcf_file, []]}
153+
.combine(Sambamba_Merge.out.map{sample_id, bam_file, bai_file -> [sample_id]})
151154
)
152155

153156
// GATK HaplotypeCaller (SNParray target)

0 commit comments

Comments
 (0)