lh3 / bwa

Burrow-Wheeler Aligner for short-read alignment (see minimap2 for long-read alignment)
GNU General Public License v3.0
1.54k stars 556 forks source link

Log verbosity #301

Closed ghost closed 2 years ago

ghost commented 4 years ago

Greetings,

I am having trouble reducing the size of my log file when running bwa mem. This is probably a mistake on my part, but running bwa mem -v 1 still outputs about 20MB of logs that look like

[M::mem_pestat] analyzing insert size distribution for orientation FR...
[M::mem_pestat] (25, 50, 75) percentile: (223, 345, 519)
[M::mem_pestat] low and high boundaries for computing mean and std.dev: (1, 1111)
[M::mem_pestat] mean and std.dev: (389.21, 213.67)
[M::mem_pestat] low and high boundaries for proper pairs: (1, 1407)
[M::mem_pestat] skip orientation RF as there are not enough pairs
[M::mem_pestat] skip orientation RR as there are not enough pairs
[M::mem_pestat] skip orientation FF as there are not enough pairs
[M::mem_pestat] analyzing insert size distribution for orientation FR...
[M::mem_pestat] (25, 50, 75) percentile: (220, 341, 519)
[M::mem_pestat] low and high boundaries for computing mean and std.dev: (1, 1117)
[M::mem_pestat] mean and std.dev: (386.95, 214.25)
[M::mem_pestat] low and high boundar

How might I turn this off?

benedict909 commented 2 years ago

any update on this? I am also having the same problem

lh3 commented 2 years ago

You can redirect output to /dev/null like cmd 2> /dev/null