Hi.
I want to measure some execution times of a bwa mapping process in order to decide which is the best chunk size. Therefore i want to capture the command line output produced by the bwa mem command which shoud look like this, when i execute the command on my local shell:
[M::main_mem] read 48000 sequences (4800000 bp)...
[main] Version: 0.7.5a-r405
[main] CMD: bwa mem hg18_chr21_micro.fa reads_pe_N48000.L.fastq
[main] Real time: 10.348 sec; CPU: 9.214 sec
I already tried to use the stdout channel (described
here). My process looks like this:
process map {
input:
set left_fastq, right_fastq from jobs
output:
set left_fastq, file('out_bam') into records mode flatten
stdout out_channel
"""
bwa mem '${params.ref}' $left_fastq $right_fastq > out.sam
samtools view -bS out.sam > out_bam
"""
}
out_channel.println()
But no command line output is produced. Is there a way to gather it, or am i using it wrong? It would also be ok, if there is another possibility to measure the processing time of a nextflow process itself (but did not found something like this).
Regards,
Julian