Bio-py icon indicating copy to clipboard operation
Bio-py copied to clipboard

BLASTp warnings in POCP-matrix.py

Open RiescoR opened this issue 9 months ago • 3 comments

Is there a way to silence BLASTp warnings in POCP-matrix.py? it generates a bazillion messages like "Warning: [Query 3937-3968] Examining 5 or more matches is recommended"

RiescoR avatar May 09 '24 08:05 RiescoR

Unfortunately, BLAST issues a warning when users use the -max_target_seqs 1 parameter, and it cannot be disabled. However, I might be able to redirect all blastp warnings to a file if you find it annoying to see them printed on your console...

SilentGene avatar May 09 '24 08:05 SilentGene

It's not really that annoying, I understand the need of the -max_target_seqs 1. I was just wandering if there was a way to limit the warnings, but it's ok. Maybe it would be nice to add a disclaimer in the readme, just to tell people that is not a problem of the py command, or as you suggest redirect those specific console outputs out.

RiescoR avatar May 09 '24 09:05 RiescoR

Thanks for the suggestion, I'll make some modifications very soon:)

SilentGene avatar May 09 '24 10:05 SilentGene

The new version will discard the specific warnings. Give it a try:)

SilentGene avatar May 17 '24 05:05 SilentGene

That´s great! thank you :)

RiescoR avatar May 17 '24 06:05 RiescoR