2021-02-15 17:29:40 +00:00
|
|
|
#!/usr/bin/env nextflow
|
|
|
|
|
|
|
|
nextflow.enable.dsl = 2
|
|
|
|
|
2021-11-26 07:58:40 +00:00
|
|
|
include { IVAR_VARIANTS } from '../../../../modules/ivar/variants/main.nf'
|
2021-02-16 04:49:27 +00:00
|
|
|
|
|
|
|
workflow test_ivar_variants_no_gff_no_mpileup {
|
2021-02-16 23:29:15 +00:00
|
|
|
|
2022-01-12 16:43:26 +00:00
|
|
|
input = [
|
|
|
|
[ id:'test'],
|
|
|
|
file(params.test_data['sarscov2']['illumina']['test_paired_end_sorted_bam'], checkIfExists: true)
|
|
|
|
]
|
2021-03-24 18:18:01 +00:00
|
|
|
fasta = file(params.test_data['sarscov2']['genome']['genome_fasta'], checkIfExists: true)
|
2022-02-18 17:36:09 +00:00
|
|
|
fai = file(params.test_data['sarscov2']['genome']['genome_fasta_fai'], checkIfExists: true)
|
|
|
|
gff = []
|
2022-01-12 16:43:26 +00:00
|
|
|
save_mpileup = false
|
|
|
|
|
2022-02-18 17:36:09 +00:00
|
|
|
IVAR_VARIANTS ( input, fasta, fai, gff, save_mpileup )
|
2021-02-16 04:49:27 +00:00
|
|
|
}
|
2021-02-15 17:29:40 +00:00
|
|
|
|
2021-02-16 04:49:27 +00:00
|
|
|
workflow test_ivar_variants_no_gff_with_mpileup {
|
2021-02-16 23:29:15 +00:00
|
|
|
|
2022-01-12 16:43:26 +00:00
|
|
|
input = [
|
|
|
|
[ id:'test'],
|
|
|
|
file(params.test_data['sarscov2']['illumina']['test_paired_end_sorted_bam'], checkIfExists: true)
|
|
|
|
]
|
2021-03-24 18:18:01 +00:00
|
|
|
fasta = file(params.test_data['sarscov2']['genome']['genome_fasta'], checkIfExists: true)
|
2022-02-18 17:36:09 +00:00
|
|
|
fai = file(params.test_data['sarscov2']['genome']['genome_fasta_fai'], checkIfExists: true)
|
|
|
|
gff = []
|
2022-01-12 16:43:26 +00:00
|
|
|
save_mpileup = true
|
2021-03-24 09:53:41 +00:00
|
|
|
|
2022-02-18 17:36:09 +00:00
|
|
|
IVAR_VARIANTS ( input, fasta, fai, gff, save_mpileup )
|
2021-02-15 17:29:40 +00:00
|
|
|
}
|
|
|
|
|
2021-02-16 04:49:27 +00:00
|
|
|
workflow test_ivar_variants_with_gff_with_mpileup {
|
2022-01-12 16:43:26 +00:00
|
|
|
|
|
|
|
input = [
|
|
|
|
[ id:'test'],
|
|
|
|
file(params.test_data['sarscov2']['illumina']['test_paired_end_sorted_bam'], checkIfExists: true)
|
|
|
|
]
|
2021-03-24 18:18:01 +00:00
|
|
|
fasta = file(params.test_data['sarscov2']['genome']['genome_fasta'], checkIfExists: true)
|
2022-02-18 17:36:09 +00:00
|
|
|
fai = file(params.test_data['sarscov2']['genome']['genome_fasta_fai'], checkIfExists: true)
|
|
|
|
gff = file(params.test_data['sarscov2']['genome']['genome_gff3'], checkIfExists: true)
|
2022-01-12 16:43:26 +00:00
|
|
|
save_mpileup = true
|
|
|
|
|
2022-02-18 17:36:09 +00:00
|
|
|
IVAR_VARIANTS ( input, fasta, fai, gff, save_mpileup )
|
2021-02-15 17:29:40 +00:00
|
|
|
}
|