mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-12-26 15:38:17 -05:00
2e619add87
* 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>
44 lines
1.5 KiB
Text
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 )
|
|
}
|