bwa mem suppress loging
1
0
Entering edit mode
21 months ago
Eva • 0

Hey all,

when running bwa mem from a python file using the subprocess module and capture_output=True, the log messages that bwa mem outputs while running are put into stderr resulting in an alleged error when checking if stderr is empty.

I've tried the -v option, but it hasn't changed anything. Does anyone have any tips on how to suppress the log messages or have them not go into stderr?

I'm studying bioinformatics, so this is my first time using these tools. Maybe I've just overlooked something.

Thanks in advance!

mem log stderr bwa • 491 views
ADD COMMENT
0
Entering edit mode
21 months ago
Ram 43k

Do it the same way you'd suppress STDERR in a shell command, by redirecting 2> to /dev/null. I don't recommend doing that though, whatever you're achieving by the "STDERR is empty" check needs to be accomplished using a different method, probably an exit code check.

ADD COMMENT

Login before adding your answer.

Traffic: 2555 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6