You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: main.nf
+21-18Lines changed: 21 additions & 18 deletions
Original file line number
Diff line number
Diff line change
@@ -298,7 +298,7 @@ if (params.genomes && params.genome && !params.genomes.containsKey(params.genome
298
298
exit 1, "[nf-core/eager] error: the provided genome '${params.genome}' is not available in the iGenomes file. Currently the available genomes are ${params.genomes.keySet().join(", ")}."
299
299
}
300
300
301
-
// Mapper sanity checking
301
+
// Mapper validation
302
302
if (params.mapper !='bwaaln'&&!params.mapper =='circularmapper'&&!params.mapper =='bwamem'&&!params.mapper =="bowtie2"){
exit 1, "[nf-core/eager] error: you have turned on bedtools coverage, but not specified a BED or GFF file with --anno_file. Please validate your parameters."
370
370
}
371
371
372
-
// BAM filtering sanity checking
372
+
// BAM filtering validation
373
373
if (!params.run_bam_filtering && params.bam_mapping_quality_threshold !=0) {
374
374
exit 1, "[nf-core/eager] error: please turn on BAM filtering if you want to perform mapping quality filtering! Give --run_bam_filtering."
375
375
}
@@ -386,12 +386,12 @@ if (params.run_bam_filtering && !params.bam_discard_unmapped && params.bam_unmap
386
386
exit 1, "[nf-core/eager] error: Please turned on unmapped read discarding, if you have specifed a different unmapped type. Give: --bam_discard_unmapped."
387
387
}
388
388
389
-
// Deduplication sanity checking
389
+
// Deduplication validation
390
390
if (params.dedupper !='dedup'&& params.dedupper !='markduplicates') {
391
391
exit 1, "[nf-core/eager] error: Selected deduplication tool is not recognised. Options: 'dedup' or 'markduplicates'. You gave: --dedupper '${params.dedupper}'."
exit 1, "[nf-core/eager] error: please specify a genotyper. Options: 'ug', 'hc', 'freebayes', 'pileupcaller'. You gave: --genotyping_tool '${params.genotyping_tool}'."
@@ -450,7 +450,7 @@ if (params.run_genotyping){
450
450
}
451
451
}
452
452
453
-
// Consensus sequence generation sanity checking
453
+
// Consensus sequence generation validation
454
454
if (params.run_vcf2genome) {
455
455
if (!params.run_genotyping) {
456
456
exit 1, "[nf-core/eager] error: consensus sequence generation requires genotyping via UnifiedGenotyper on be turned on with the parameter --run_genotyping and --genotyping_tool 'ug'. Please check your genotyping parameters."
@@ -461,7 +461,7 @@ if (params.run_vcf2genome) {
461
461
}
462
462
}
463
463
464
-
// MultiVCFAnalyzer sanity checking
464
+
// MultiVCFAnalyzer validation
465
465
if (params.run_multivcfanalyzer) {
466
466
if (!params.run_genotyping) {
467
467
exit 1, "[nf-core/eager] error: MultiVCFAnalyzer requires genotyping to be turned on with the parameter --run_genotyping. Please check your genotyping parameters."
@@ -476,7 +476,7 @@ if (params.run_multivcfanalyzer) {
476
476
}
477
477
}
478
478
479
-
// Metagenomic sanity checking
479
+
// Metagenomic validation
480
480
if (params.run_metagenomic_screening) {
481
481
if ( !params.bam_discard_unmapped ) {
482
482
exit 1, "[nf-core/eager] error: metagenomic classification can only run on unmapped reads. Please supply --bam_discard_unmapped and --bam_unmapped_type 'fastq'."
@@ -519,7 +519,7 @@ if (params.run_metagenomic_screening) {
519
519
}
520
520
}
521
521
522
-
// MaltExtract Sanity checking
522
+
// MaltExtract validation
523
523
if (params.run_maltextract) {
524
524
525
525
if (params.run_metagenomic_screening && params.metagenomic_tool !='malt') {
@@ -548,7 +548,7 @@ if (!(workflow.runName ==~ /[a-z]+_[a-z]+/)) {
548
548
}
549
549
550
550
if (workflow.profile.contains('awsbatch')) {
551
-
// AWSBatch sanity checking
551
+
// AWSBatch validation
552
552
if (!params.awsqueue ||!params.awsregion) exit 1, "Specify correct --awsqueue and --awsregion parameters on AWSBatch."
553
553
// Check outdir paths to be S3 buckets if running on AWSBatch
if (samplename ==''|| libraryid ==''|| lane ==''|| colour ==''|| seqtype ==''|| seqtype ==''|| udg ==''|| r1 ==''|| r2 =='') exit 1, "[nf-core/eager] error: a field does not contain any information. Ensure all cells are filled or contain 'NA' for optional fields. Check row:\n${row}"
3168
+
3166
3169
// Check no 'empty' rows
3167
3170
if (r1.matches('NA') && r2.matches('NA') && bam.matches('NA') && bai.matches('NA')) exit 1, "[nf-core/eager] error: A row in your TSV appears to have all files defined as NA. See --help or documentation under 'running the pipeline' for more information. Check row for: ${samplename}"
.filter { it =~/.*.fastq.gz|.*.fq.gz|.*.fastq|.*.fq/ }
3242
-
.ifEmpty { exit 1, "[nf-core/eager] error: Your specified FASTQ read files did not end in: '.fastq.gz', '.fq.gz', '.fastq', or '.fq'" }
3245
+
.ifEmpty { exit 1, "[nf-core/eager] error: Files could not be found. Do the specified FASTQ read files end in: '.fastq.gz', '.fq.gz', '.fastq', or '.fq'? Did you forget --single_end?" }
0 commit comments