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

nf_modules: add bam to bedgraph and change deeptools version

parent ed7fec13
No related branches found
No related tags found
No related merge requests found
......@@ -55,3 +55,22 @@ bedtools bamtofastq \
-i ${bam} -fq ${bam.baseName}_R1.fastq -fq2 ${bam.baseName}_R2.fastq
"""
}
process bam_to_bedgraph {
container = "${container_url}"
label "big_mem_mono_cpus"
tag "${bam_id}"
input:
tuple val(bam_id), path(bam)
output:
tuple val(bam_id), path("*.bg"), emit: bedgraph
script:
"""
bedtools genomecov \
-ibam ${bam} \
-bg > ${bam.simpleName}.bg
"""
}
version = "3.0.2"
version = "3.1.1"
container_url = "lbmc/deeptools:${version}"
process index_bam {
......
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