I am calling samtools as a subprocess from a script, many times. Each time it runs I get a message to the screen that says [samopen] SAM header is present: X sequences
. I have tried to redirect it, but have not been successful. I don't see any kind of "quiet" mode option in samtools. Is there a way to make this not print every time I call samtools?
Thanks for a quick response. I tried that and it didn't seem to work, although my call piped output to another call, so I just had to relocate the stderr redirect to the first call and now it works (duh). Thank you!