@cmdcolin thanks a lot! Indeed, that is something perfectly working and which I came across and experimented with as well; in general cases, it functions just fine. However, I have to deal with a sh environment called within my script to effectively filter out some files form the analysis done with chromap; for this reason, the trick with dev/stdout stopped working in that situation resulting in the mapping to abort after three/four iterations...
Hence, I'm looking for an alternative that can pipe the output SAM after the -o flag directly into samtools to get a BAM out of it, if there is any. Thanks again!