2021-03-17 08:42:35 +00:00
|
|
|
#!/usr/bin/env nextflow
|
|
|
|
|
|
|
|
nextflow.enable.dsl = 2
|
|
|
|
|
2021-11-26 07:58:40 +00:00
|
|
|
include { GATK4_VARIANTFILTRATION } from '../../../../modules/gatk4/variantfiltration/main.nf'
|
2021-03-17 08:42:35 +00:00
|
|
|
|
2021-11-18 20:47:40 +00:00
|
|
|
// Basic parameters with uncompressed VCF input
|
|
|
|
workflow test_gatk4_variantfiltration_vcf_input {
|
|
|
|
|
2021-11-26 07:58:40 +00:00
|
|
|
input = [
|
|
|
|
[ id:'test' ], // meta map
|
|
|
|
file(params.test_data['homo_sapiens']['illumina']['test_genome_vcf'], checkIfExists: true),
|
|
|
|
file(params.test_data['homo_sapiens']['illumina']['test_genome_vcf_idx'], checkIfExists: true)
|
|
|
|
]
|
2021-03-24 18:14:11 +00:00
|
|
|
|
2021-11-26 07:58:40 +00:00
|
|
|
fasta = file(params.test_data['homo_sapiens']['genome']['genome_fasta'], checkIfExists: true)
|
|
|
|
fasta_index = file(params.test_data['homo_sapiens']['genome']['genome_fasta_fai'], checkIfExists: true)
|
|
|
|
fasta_dict = file(params.test_data['homo_sapiens']['genome']['genome_dict'], checkIfExists: true)
|
2021-03-17 08:42:35 +00:00
|
|
|
|
2021-11-26 07:58:40 +00:00
|
|
|
GATK4_VARIANTFILTRATION ( input, fasta, fasta_index, fasta_dict )
|
2021-03-17 08:42:35 +00:00
|
|
|
}
|
2021-11-18 20:47:40 +00:00
|
|
|
|
|
|
|
// Basic parameters with compressed VCF input
|
|
|
|
workflow test_gatk4_variantfiltration_gz_input {
|
|
|
|
|
2021-11-26 07:58:40 +00:00
|
|
|
input = [
|
|
|
|
[ id:'test' ], // meta map
|
|
|
|
file(params.test_data['homo_sapiens']['illumina']['test_genome_vcf_gz'], checkIfExists: true),
|
|
|
|
file(params.test_data['homo_sapiens']['illumina']['test_genome_vcf_gz_tbi'], checkIfExists: true)
|
|
|
|
]
|
2021-11-18 20:47:40 +00:00
|
|
|
|
2021-11-26 07:58:40 +00:00
|
|
|
fasta = file(params.test_data['homo_sapiens']['genome']['genome_fasta'], checkIfExists: true)
|
|
|
|
fasta_index = file(params.test_data['homo_sapiens']['genome']['genome_fasta_fai'], checkIfExists: true)
|
|
|
|
fasta_dict = file(params.test_data['homo_sapiens']['genome']['genome_dict'], checkIfExists: true)
|
2021-11-18 20:47:40 +00:00
|
|
|
|
2021-11-26 07:58:40 +00:00
|
|
|
GATK4_VARIANTFILTRATION ( input, fasta, fasta_index, fasta_dict )
|
2021-11-18 20:47:40 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|