refactor: Move HAPLINK_VARIANTS module to its own folder

This commit is contained in:
Thomas A. Christensen II 2023-09-23 15:21:26 -05:00
parent a91632a883
commit 2829d51533
Signed by: millironx
GPG key ID: 09335146883990B9
2 changed files with 23 additions and 23 deletions

24
main.nf
View file

@ -1,5 +1,6 @@
#!/usr/bin/env nextflow
include { HAPLINK_VARIANTS } from './modules/haplink/variants'
include { VIQUAS } from './modules/viquas'
workflow {
@ -195,29 +196,6 @@ process SHORAH_SHOTGUN {
"""
}
process HAPLINK_VARIANTS {
cpus 2
memory '12.GB'
input:
tuple val(prefix), path(bam), path(bai)
path reference
output:
tuple val(prefix), path("*.vcf")
publishDir "results", mode: 'copy'
script:
"""
export JULIA_NUM_THREADS=${task.cpus}
haplink variants \\
"${reference}" \\
"${bam}" \\
> "${prefix}.vcf"
"""
}
process HAPLINK_RAW_HAPLOTYPES {
cpus 2
memory '12.GB'

View file

@ -0,0 +1,22 @@
process HAPLINK_VARIANTS {
cpus 2
memory '12.GB'
input:
tuple val(prefix), path(bam), path(bai)
path reference
output:
tuple val(prefix), path("*.vcf")
publishDir "results", mode: 'copy'
script:
"""
export JULIA_NUM_THREADS=${task.cpus}
haplink variants \\
"${reference}" \\
"${bam}" \\
> "${prefix}.vcf"
"""
}