nf-core_modules/tests/modules/samtools/ampliconclip/main.nf
Johnathan D 2e619add87
Add samtools ampliconclip (#590)
* created template for `samtools/ampliconclip` (#584)

* All tests passing (#584)

* Linting fixed (#584)

* Final linting fixed (#584)

* Optional output flags moved to `input` (#584)

* typo fix (#584)

* Apply suggestions from code review

Co-authored-by: Harshil Patel <drpatelh@users.noreply.github.com>
2021-07-20 21:31:31 +01:00

44 lines
1.5 KiB
Text

#!/usr/bin/env nextflow
nextflow.enable.dsl = 2
include { SAMTOOLS_AMPLICONCLIP } from '../../../../modules/samtools/ampliconclip/main.nf' addParams([:])
workflow test_samtools_ampliconclip_no_stats_no_rejects {
input = [
[ id:'test', single_end:false ],
file(params.test_data['sarscov2']['illumina']['test_paired_end_bam'], checkIfExists: true)
]
bed = file(params.test_data['sarscov2']['genome']['test_bed'], checkIfExists: true)
save_cliprejects = false
save_clipstats = false
SAMTOOLS_AMPLICONCLIP ( input, bed, save_cliprejects, save_clipstats )
}
workflow test_samtools_ampliconclip_no_stats_with_rejects {
input = [
[ id:'test', single_end:false ],
file(params.test_data['sarscov2']['illumina']['test_paired_end_bam'], checkIfExists: true)
]
bed = file(params.test_data['sarscov2']['genome']['test_bed'], checkIfExists: true)
save_cliprejects = true
save_clipstats = false
SAMTOOLS_AMPLICONCLIP ( input, bed, save_cliprejects, save_clipstats )
}
workflow test_samtools_ampliconclip_with_stats_with_rejects {
input = [
[ id:'test', single_end:false ],
file(params.test_data['sarscov2']['illumina']['test_paired_end_bam'], checkIfExists: true)
]
bed = file(params.test_data['sarscov2']['genome']['test_bed'], checkIfExists: true)
save_cliprejects = true
save_clipstats = true
SAMTOOLS_AMPLICONCLIP ( input, bed, save_cliprejects, save_clipstats )
}