@@ -43,22 +43,9 @@ Output:
4343--outdir Path where the results to be saved [Default: './results']
4444
4545Kit files:
46+ --kitfiles Path to kitfiles defined in metafiles.config
47+ --metafiles Path to metafiles defined in metafiles.config
4648--kit Kit used to prep samples [Default: 'agilent_v5']
47- --bait Absolute path to bait file
48- --target Absolute path to target file
49- --target_bed Absolute path to target bed file (snpEff compatible format)
50-
51- Genome/Variation files:
52- --dbsnp Absolute path to dbsnp file
53- --thousandg Absolute path to 1000G file
54- --mills Absolute path to Mills file
55- --omni Absolute path to Omni file
56- --gfasta Absolute path to genome fasta file
57- --bwa_index Absolute path to bwa genome index
58-
59- Other options:
60- --exome Exome data, if this is not set, run as genome data
61- --project Uppnex project to user for SLURM executor
6249
6350For more detailed information regarding the parameters and usage refer to package
6451documentation at https://github.com/nf-core/ExoSeq
@@ -69,9 +56,7 @@ params.name = false
6956params. help = false
7057params. reads = false
7158params. singleEnd = false
72- params. genome = false
7359params. run_id = false
74- params. exome = false // default genome, set to true to run restricting to exome positions
7560params. aligner = ' bwa' // Default, but stay tuned for later ;-)
7661params. saveReference = true
7762
@@ -91,24 +76,14 @@ params.three_prime_clip_r2 = 0
9176
9277// Kit options
9378params. kit = ' agilent_v5'
94- params. bait = params. kitFiles[ params. kit ] ? params. kitFiles[ params. kit ]. bait ?: false : false
95- params. target = params. kitFiles[ params. kit ] ? params. kitFiles[ params. kit ]. target ?: false : false
96- params. target_bed = params. kitFiles[ params. kit ] ? params. kitFiles[ params. kit ]. target_bed ?: false : false
97- params. dbsnp = params. metaFiles[ params. genome ] ? params. metaFiles[ params. genome ]. dbsnp ?: false : false
98- params. thousandg = params. metaFiles[ params. genome ] ? params. metaFiles[ params. genome ]. thousandg ?: false : false
99- params. mills = params. metaFiles[ params. genome ] ? params. metaFiles[ params. genome ]. mills ?: false : false
100- params. omni = params. metaFiles[ params. genome ] ? params. metaFiles[ params. genome ]. omni ?: false : false
101- params. gfasta = params. metaFiles[ params. genome ] ? params. metaFiles[ params. genome ]. gfasta ?: false : false
102- params. bwa_index = params. metaFiles[ params. genome ] ? params. metaFiles[ params. genome ]. bwa_index ?: false : false
10379
10480// Has the run name been specified by the user?
105- // this has the bonus effect of catching both -name and --name
81+ // this has the bonus effect of catching both -name and --name
10682custom_runName = params. name
10783if ( ! (workflow. runName ==~ / [a-z]+_[a-z]+/ ) ){
10884 custom_runName = workflow. runName
10985}
11086
111-
11287// Show help when needed
11388if (params. help){
11489 log. info helpMessage
@@ -119,14 +94,12 @@ if (params.help){
11994if (! params. reads || ! params. genome){
12095 exit 1 , " Parameters '--reads' and '--genome' are required to run the pipeline"
12196}
122- if (! params. kitFiles[ params. kit ] && [' bait' , ' target' ]. count{ params[it] } != 2 ){
123- exit 1 , " Kit '${ params.kit} ' is not available in pre-defined config, so " +
124- " provide all kit specific files with option '--bait' and '--target'"
97+ if (! params. kitfiles){
98+ exit 1 , " No Exome Capturing Kit specified!"
99+ }
100+ if (! params. metafiles){
101+ exit 1 , " No Exome Metafiles specified!"
125102}
126- if (! params. metaFiles[ params. genome ] && [' gfasta' , ' bwa_index' , ' dbsnp' , ' thousandg' , ' mills' , ' omni' ]. count{ params[it] } != 6 ){
127- exit 1 , " Genome '${ params.genome} ' is not available in pre-defined config, so you need to provide all genome specific " +
128- " files with options '--gfasta', '--bwa_index', '--dbsnp', '--thousandg', '--mills' and '--omni'"
129- }
130103
131104// Create a channel for input files
132105
@@ -137,7 +110,6 @@ Channel
137110
138111
139112// Validate Input indices for BWA Mem and GATK
140-
141113if (params. aligner == ' bwa' ){
142114 bwaId = Channel
143115 .fromPath(" ${ params.gfasta} .bwt" )
@@ -150,8 +122,7 @@ def summary = [:]
150122summary[' Run Name' ] = custom_runName ?: workflow. runName
151123summary[' Reads' ] = params. reads
152124summary[' Data Type' ] = params. singleEnd ? ' Single-End' : ' Paired-End'
153- summary[' Genome' ] = params. genome
154- summary[' WES/WGS' ] = params. exome ? ' WES' : ' WGS'
125+ summary[' Genome Assembly' ] = params. genome
155126summary[' Trim R1' ] = params. clip_r1
156127summary[' Trim R2' ] = params. clip_r2
157128summary[" Trim 3' R1" ] = params. three_prime_clip_r1
@@ -178,7 +149,6 @@ summary['Config Profile'] = workflow.profile
178149log. info summary. collect { k,v -> " ${ k.padRight(15)} : $v " }. join(" \n " )
179150log. info " ========================================="
180151
181-
182152try {
183153 if ( ! workflow. nextflow. version. matches(" >= $params . nf_required_version " ) ){
184154 throw GroovyException (' Nextflow version too old' )
0 commit comments