diff --git a/src/nf_modules/alntools/main.nf b/src/nf_modules/alntools/main.nf index 26ba48f82d5267dfc604c48ba1c00924da7a7485..73a2278ee4aac0d23f0c6a9bdd5dcf5503d46625 100644 --- a/src/nf_modules/alntools/main.nf +++ b/src/nf_modules/alntools/main.nf @@ -18,12 +18,18 @@ process bam2ec { output: tuple val(file_id), path("${bam.simpleName}.bin"), emit: bin tuple val(gtf_id), path("${transcripts_lengths}"), emit: tsv + tuple val(file_id), path("${bam.simpleName}_bam2ec_report.txt"), emit: report script: """ -cp ${bam} file_bam.bam -cp ${bam_idx} file_bam.bam.bai -alntools bam2ec ${params.bam2ec} -t ${transcripts_lengths} file_bam.bam ${bam.simpleName}.bin +mkdir tmp +alntools bam2ec \ + -c 1 ${params.bam2ec} \ + -d ./tmp \ + -t ${transcripts_lengths} \ + -v \ + ${bam} ${bam.simpleName}.bin &> \ + ${bam.simpleName}_bam2ec_report.txt """ }