2021-02-15 17:29:40 +00:00
|
|
|
#!/usr/bin/env nextflow
|
|
|
|
|
|
|
|
nextflow.enable.dsl = 2
|
|
|
|
|
2021-02-16 04:49:27 +00:00
|
|
|
include { IVAR_VARIANTS } from '../../../../software/ivar/variants/main.nf' addParams([:])
|
|
|
|
|
|
|
|
workflow test_ivar_variants_no_gff_no_mpileup {
|
2021-02-16 23:06:26 +00:00
|
|
|
params.gff = false
|
|
|
|
params.save_mpileup = false
|
2021-02-16 23:29:15 +00:00
|
|
|
|
|
|
|
input = [ [ id:'test'],
|
2021-03-24 09:53:41 +00:00
|
|
|
file("${launchDir}/tests/data/genomics/sarscov2/illumina/bam/test_paired_end.sorted.bam", checkIfExists: true)
|
|
|
|
]
|
|
|
|
fasta = file("${launchDir}/tests/data/genomics/sarscov2/genome/genome.fasta", checkIfExists: true)
|
|
|
|
dummy = file("dummy_file.txt")
|
|
|
|
|
|
|
|
IVAR_VARIANTS ( input, fasta, dummy )
|
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:06:26 +00:00
|
|
|
params.gff = false
|
|
|
|
params.save_mpileup = true
|
2021-02-16 23:29:15 +00:00
|
|
|
|
|
|
|
input = [ [ id:'test'],
|
2021-03-24 09:53:41 +00:00
|
|
|
file("${launchDir}/tests/data/genomics/sarscov2/illumina/bam/test_paired_end.sorted.bam", checkIfExists: true)
|
|
|
|
]
|
|
|
|
fasta = file("${launchDir}/tests/data/genomics/sarscov2/genome/genome.fasta", checkIfExists: true)
|
|
|
|
dummy = file("dummy_file.txt")
|
|
|
|
|
|
|
|
IVAR_VARIANTS ( input, fasta, dummy )
|
2021-02-15 17:29:40 +00:00
|
|
|
}
|
|
|
|
|
2021-02-16 04:49:27 +00:00
|
|
|
workflow test_ivar_variants_with_gff_with_mpileup {
|
2021-02-16 23:29:15 +00:00
|
|
|
params.gff = true
|
2021-02-16 23:06:26 +00:00
|
|
|
params.save_mpileup = true
|
2021-03-24 09:53:41 +00:00
|
|
|
|
2021-02-16 23:29:15 +00:00
|
|
|
input = [ [ id:'test'],
|
2021-03-24 09:53:41 +00:00
|
|
|
file("${launchDir}/tests/data/genomics/sarscov2/illumina/bam/test_paired_end.sorted.bam", checkIfExists: true)
|
|
|
|
]
|
|
|
|
fasta = file("${launchDir}/tests/data/genomics/sarscov2/genome/genome.fasta", checkIfExists: true)
|
|
|
|
gff = file("${launchDir}/tests/data/genomics/sarscov2/genome/genome.gff3", checkIfExists: true)
|
|
|
|
|
|
|
|
IVAR_VARIANTS ( input, fasta, gff )
|
2021-02-15 17:29:40 +00:00
|
|
|
}
|