refactor: Move SHORAH_AMPLICON to its own file
This commit is contained in:
parent
89323bf2c6
commit
dbea6fb30a
2 changed files with 23 additions and 23 deletions
24
main.nf
24
main.nf
|
@ -4,6 +4,7 @@ include { EFETCH } from './modules/efetch'
|
|||
include { HAPLINK_VARIANTS } from './modules/haplink/variants'
|
||||
include { MINIMAP2 } from './modules/minimap2'
|
||||
include { NANOFILT } form './modules/nanofilt'
|
||||
include { SHORAH_AMPLICON } from './modules/shorah/amplicon'
|
||||
include { VIQUAS } from './modules/viquas'
|
||||
|
||||
workflow {
|
||||
|
@ -71,29 +72,6 @@ workflow {
|
|||
)
|
||||
}
|
||||
|
||||
process SHORAH_AMPLICON {
|
||||
label 'process_high'
|
||||
container 'quay.io/biocontainers/shorah:1.99.2--py38h73782ee_8'
|
||||
|
||||
input:
|
||||
tuple val(prefix), path(bam)
|
||||
path(reference)
|
||||
|
||||
output:
|
||||
tuple val(prefix), path("*.vcf")
|
||||
tuple val(prefix), path("*support.fas")
|
||||
|
||||
publishDir "results/shorah-amplicon", mode: 'copy'
|
||||
|
||||
script:
|
||||
"""
|
||||
shorah amplicon \\
|
||||
-t ${task.cpus} \\
|
||||
-f ${reference} \\
|
||||
-b ${bam} \\
|
||||
"""
|
||||
}
|
||||
|
||||
process SHORAH_SHOTGUN {
|
||||
label 'process_high'
|
||||
container 'quay.io/biocontainers/shorah:1.99.2--py38h73782ee_8'
|
||||
|
|
22
modules/shorah/amplicon/main.nf
Normal file
22
modules/shorah/amplicon/main.nf
Normal file
|
@ -0,0 +1,22 @@
|
|||
process SHORAH_AMPLICON {
|
||||
label 'process_high'
|
||||
container 'quay.io/biocontainers/shorah:1.99.2--py38h73782ee_8'
|
||||
|
||||
input:
|
||||
tuple val(prefix), path(bam)
|
||||
path(reference)
|
||||
|
||||
output:
|
||||
tuple val(prefix), path("*.vcf")
|
||||
tuple val(prefix), path("*support.fas")
|
||||
|
||||
publishDir "results/shorah-amplicon", mode: 'copy'
|
||||
|
||||
script:
|
||||
"""
|
||||
shorah amplicon \\
|
||||
-t ${task.cpus} \\
|
||||
-f ${reference} \\
|
||||
-b ${bam} \\
|
||||
"""
|
||||
}
|
Loading…
Reference in a new issue