Skip to content
Snippets Groups Projects
Verified Commit 9c64bd7b authored by Laurent Modolo's avatar Laurent Modolo
Browse files

g2gtools: add convert process

parent d0b4f082
No related branches found
No related tags found
No related merge requests found
......@@ -59,4 +59,61 @@ g2gtools transform \
-c ${vci} \
-o ${file_id}_snp_indel.fasta
"""
}
process convert_gtf {
container = "${container_url}"
label "big_mem_mono_cpus"
tag "$file_id"
input:
tuple val(file_id), path(vci)
tuple val(annot_id), path(gtf)
output:
tuple val(file_id), path("${file_id}.gtf"), emit: gtf
script:
"""
g2gtools convert \
-i ${gtf} \
-c ${vci} \
-o ${file_id}.gtf
"""
}
process convert_bed {
container = "${container_url}"
label "big_mem_mono_cpus"
tag "$file_id"
input:
tuple val(file_id), path(vci)
tuple val(annot_id), path(bed)
output:
tuple val(file_id), path("${file_id}.bed"), emit: bed
script:
"""
g2gtools convert \
-i ${bed} \
-c ${vci} \
-o ${file_id}.bed
"""
}
process convert_bam {
container = "${container_url}"
label "big_mem_mono_cpus"
tag "${bam_id} ${file_id}"
input:
tuple val(file_id), path(vci)
tuple val(bam_id), path(bam)
output:
tuple val(file_id), path("${file_id}_${bam_id}.bam"), emit: bam
script:
"""
g2gtools convert \
-i ${bam} \
-c ${vci} \
-o ${file_id}_${bam_id}.bam
"""
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment