2021-02-15 12:29:40 -05:00
|
|
|
#!/usr/bin/env nextflow
|
|
|
|
|
|
|
|
nextflow.enable.dsl = 2
|
|
|
|
|
2021-07-07 05:10:18 -04:00
|
|
|
include { IVAR_VARIANTS } from '../../../../modules/ivar/variants/main.nf' addParams([:])
|
2021-02-15 23:49:27 -05:00
|
|
|
|
|
|
|
workflow test_ivar_variants_no_gff_no_mpileup {
|
2021-02-16 18:06:26 -05:00
|
|
|
params.gff = false
|
|
|
|
params.save_mpileup = false
|
2021-02-16 18:29:15 -05:00
|
|
|
|
|
|
|
input = [ [ id:'test'],
|
2021-03-24 14:18:01 -04:00
|
|
|
file(params.test_data['sarscov2']['illumina']['test_paired_end_sorted_bam'], checkIfExists: true)
|
2021-03-24 05:53:41 -04:00
|
|
|
]
|
2021-03-24 14:18:01 -04:00
|
|
|
fasta = file(params.test_data['sarscov2']['genome']['genome_fasta'], checkIfExists: true)
|
2021-03-24 05:53:41 -04:00
|
|
|
dummy = file("dummy_file.txt")
|
|
|
|
|
|
|
|
IVAR_VARIANTS ( input, fasta, dummy )
|
2021-02-15 23:49:27 -05:00
|
|
|
}
|
2021-02-15 12:29:40 -05:00
|
|
|
|
2021-02-15 23:49:27 -05:00
|
|
|
workflow test_ivar_variants_no_gff_with_mpileup {
|
2021-02-16 18:06:26 -05:00
|
|
|
params.gff = false
|
|
|
|
params.save_mpileup = true
|
2021-02-16 18:29:15 -05:00
|
|
|
|
|
|
|
input = [ [ id:'test'],
|
2021-03-24 14:18:01 -04:00
|
|
|
file(params.test_data['sarscov2']['illumina']['test_paired_end_sorted_bam'], checkIfExists: true)
|
2021-03-24 05:53:41 -04:00
|
|
|
]
|
2021-03-24 14:18:01 -04:00
|
|
|
fasta = file(params.test_data['sarscov2']['genome']['genome_fasta'], checkIfExists: true)
|
2021-03-24 05:53:41 -04:00
|
|
|
dummy = file("dummy_file.txt")
|
|
|
|
|
|
|
|
IVAR_VARIANTS ( input, fasta, dummy )
|
2021-02-15 12:29:40 -05:00
|
|
|
}
|
|
|
|
|
2021-02-15 23:49:27 -05:00
|
|
|
workflow test_ivar_variants_with_gff_with_mpileup {
|
2021-02-16 18:29:15 -05:00
|
|
|
params.gff = true
|
2021-02-16 18:06:26 -05:00
|
|
|
params.save_mpileup = true
|
2021-03-24 05:53:41 -04:00
|
|
|
|
2021-02-16 18:29:15 -05:00
|
|
|
input = [ [ id:'test'],
|
2021-03-24 14:18:01 -04:00
|
|
|
file(params.test_data['sarscov2']['illumina']['test_paired_end_sorted_bam'], checkIfExists: true)
|
2021-03-24 05:53:41 -04:00
|
|
|
]
|
2021-03-24 14:18:01 -04:00
|
|
|
fasta = file(params.test_data['sarscov2']['genome']['genome_fasta'], checkIfExists: true)
|
|
|
|
gff = file(params.test_data['sarscov2']['genome']['genome_gff3'], checkIfExists: true)
|
2021-03-24 05:53:41 -04:00
|
|
|
|
|
|
|
IVAR_VARIANTS ( input, fasta, gff )
|
2021-02-15 12:29:40 -05:00
|
|
|
}
|