mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-12-26 23:43:19 -05:00
009f7c691c
* Added: gatk4/leftalignandtrimvariants Additions: - GATK4/LeftAlignAndTrimVariants module - Use sars-ncov2 test data as this normalises a larger INDEL correctly. Fixes #1801 * fixup: Added index to output spec * fixup: Pattern of tbi output corrected to 'tbi' * gatk4/leftalignandtrimvariants: Added intervals Changes: - gatk4/leftalignandtrimvariants now supports optional interval as BED file - Tests added with and without interval. Not test BED file excludes all variants so no variants are actually normalised. Fixes #1801 * fixup: leftalignandtrimvariants vcf->tbi fix * fixup: gatk4/leftalignandtrimvariants Intervals added to meta.yml
35 lines
1.5 KiB
Text
35 lines
1.5 KiB
Text
#!/usr/bin/env nextflow
|
|
|
|
nextflow.enable.dsl = 2
|
|
|
|
include { GATK4_LEFTALIGNANDTRIMVARIANTS } from '../../../../modules/gatk4/leftalignandtrimvariants/main.nf'
|
|
|
|
workflow test_gatk4_leftalignandtrimvariants_interval {
|
|
|
|
input = [ [ id:'test' ], // meta map
|
|
file(params.test_data['sarscov2']['illumina']['test_vcf_gz'], checkIfExists: true),
|
|
file(params.test_data['sarscov2']['illumina']['test_vcf_gz_tbi'], checkIfExists: true),
|
|
file(params.test_data['sarscov2']['genome']['test_bed'], checkIfExists: true),
|
|
]
|
|
|
|
fasta = file(params.test_data['sarscov2']['genome']['genome_fasta'], checkIfExists: true)
|
|
fai = file(params.test_data['sarscov2']['genome']['genome_fasta_fai'], checkIfExists: true)
|
|
dict = file(params.test_data['sarscov2']['genome']['genome_dict'], checkIfExists: true)
|
|
|
|
GATK4_LEFTALIGNANDTRIMVARIANTS ( input, fasta, fai, dict )
|
|
}
|
|
|
|
workflow test_gatk4_leftalignandtrimvariants_no_interval {
|
|
|
|
input = [ [ id:'test' ], // meta map
|
|
file(params.test_data['sarscov2']['illumina']['test_vcf_gz'], checkIfExists: true),
|
|
file(params.test_data['sarscov2']['illumina']['test_vcf_gz_tbi'], checkIfExists: true),
|
|
[]
|
|
]
|
|
|
|
fasta = file(params.test_data['sarscov2']['genome']['genome_fasta'], checkIfExists: true)
|
|
fai = file(params.test_data['sarscov2']['genome']['genome_fasta_fai'], checkIfExists: true)
|
|
dict = file(params.test_data['sarscov2']['genome']['genome_dict'], checkIfExists: true)
|
|
|
|
GATK4_LEFTALIGNANDTRIMVARIANTS ( input, fasta, fai, dict )
|
|
}
|