Skip to content
Snippets Groups Projects
Unverified Commit 70c7d906 authored by Laurent Modolo's avatar Laurent Modolo
Browse files

bedtools: add bam to fastq convertion

parent de331fa7
No related branches found
No related tags found
No related merge requests found
......@@ -20,3 +20,43 @@ bedtools getfasta -name \
-fi ${fasta} -bed ${bed} -fo ${bed.baseName}_extracted.fasta
"""
}
process bam_to_fastq_singleend {
container = "${container_url}"
label "big_mem_mono_cpus"
tag "${bed.baseName}"
publishDir "results/fasta/", mode: 'copy'
input:
path fasta
path bed
output:
path "*_extracted.fasta", emit: fasta
script:
"""
bedtools bamtofastq
-i ${bam} -fq ${bam.baseName}.fastq
"""
}
process bam_to_fastq_paired_end {
container = "${container_url}"
label "big_mem_mono_cpus"
tag "${bed.baseName}"
publishDir "results/fasta/", mode: 'copy'
input:
path fasta
path bed
output:
path "*_extracted.fasta", emit: fasta
script:
"""
bedtools bamtofastq
-i ${bam} -fq ${bam.baseName}_R1.fastq -fq2 ${bam.baseName}_R2.fastq
"""
}
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