@@ -200,23 +200,21 @@ params.species = params.genome ? params.genomes[params.genome].s
200200params. vep_cache_version = params. genome ? params. genomes[params. genome]. vep_cache_version ?: false : false
201201
202202// Initialize channels based on params
203- fasta = params. fasta && ! (' annotate' in step) ? params. fasta : Channel . empty()
204- dbsnp = params. dbsnp && (' mapping' in step || ' preparerecalibration' in step || ' controlfreec' in tools || ' haplotypecaller' in tools || ' mutect2' in tools || params. sentieon) ? params. dbsnp : Channel . empty()
205- germline_resource = params. germline_resource && ' mutect2' in tools ? params. germline_resource : Channel . empty()
206- known_indels = params. known_indels && (' mapping' in step || ' preparerecalibration' in step) ? params. known_indels : Channel . empty()
207- pon = params. pon ? params. pon : Channel . empty()
208-
209- loci = params. ac_loci && ' ascat' in tools ? params. ac_loci : Channel . empty()
210- loci_gc = params. ac_loci_gc && ' ascat' in tools ? params. ac_loci_gc : Channel . empty()
211- chr_dir = params. chr_dir && ' controlfreec' in tools ? params. chr_dir : Channel . empty()
212- chr_length = params. chr_length && ' controlfreec' in tools ? params. chr_length : Channel . empty()
213- mappability = params. mappability && ' controlfreec' in tools ? params. mappability : Channel . empty()
214-
203+ chr_dir = params. chr_dir ?: Channel . empty()
204+ chr_length = params. chr_length ?: Channel . empty()
205+ dbsnp = params. dbsnp ?: Channel . empty()
206+ fasta = params. fasta ?: Channel . empty()
207+ germline_resource = params. germline_resource ?: Channel . empty()
208+ known_indels = params. known_indels ?: Channel . empty()
209+ loci = params. ac_loci ?: Channel . empty()
210+ loci_gc = params. ac_loci_gc ?: Channel . empty()
211+ mappability = params. mappability ?: Channel . empty()
212+ pon = params. pon ?: Channel . empty()
215213snpeff_cache = params. snpeff_cache ?: Channel . empty()
216214snpeff_db = params. snpeff_db ?: Channel . empty()
217215snpeff_species = params. species ?: Channel . empty()
218- vep_cache_version = params. vep_cache_version ?: Channel . empty()
219216vep_cache = params. vep_cache ?: Channel . empty()
217+ vep_cache_version = params. vep_cache_version ?: Channel . empty()
220218
221219// Optional files, not defined within the params.genomes[params.genome] scope
222220cadd_indels = params. cadd_indels ?: Channel . empty()
0 commit comments