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

alntools: redirect stderr to report file

parent 7a115a1a
No related branches found
No related tags found
No related merge requests found
...@@ -18,12 +18,18 @@ process bam2ec { ...@@ -18,12 +18,18 @@ process bam2ec {
output: output:
tuple val(file_id), path("${bam.simpleName}.bin"), emit: bin tuple val(file_id), path("${bam.simpleName}.bin"), emit: bin
tuple val(gtf_id), path("${transcripts_lengths}"), emit: tsv tuple val(gtf_id), path("${transcripts_lengths}"), emit: tsv
tuple val(file_id), path("${bam.simpleName}_bam2ec_report.txt"), emit: report
script: script:
""" """
cp ${bam} file_bam.bam mkdir tmp
cp ${bam_idx} file_bam.bam.bai alntools bam2ec \
alntools bam2ec ${params.bam2ec} -t ${transcripts_lengths} file_bam.bam ${bam.simpleName}.bin -c 1 ${params.bam2ec} \
-d ./tmp \
-t ${transcripts_lengths} \
-v \
${bam} ${bam.simpleName}.bin &> \
${bam.simpleName}_bam2ec_report.txt
""" """
} }
......
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