Skip to content

Add arithmetic meanqual#24

Open
conchoecia wants to merge 2 commits intolh3:masterfrom
conchoecia:master
Open

Add arithmetic meanqual#24
conchoecia wants to merge 2 commits intolh3:masterfrom
conchoecia:master

Conversation

@conchoecia
Copy link

@conchoecia conchoecia commented Oct 18, 2017

I added a function that calculates the arithmetic mean of the quality scores, rather than the geometric mean as meanqual currently does.

For motivation, please see this blog post. Using the geometric mean of Q-scores inflates the estimation of the quality of the scores.

The new bioawk method is called arithmeanqual and can be used in the following fashion:

bioawk -c fastx '{print arithmeanqual($qual)}' mydata.fastq

Thanks!

ctSkennerton pushed a commit to ctSkennerton/bioawk that referenced this pull request May 22, 2019
Fix initial "fields" buffer size
@splaisan
Copy link

splaisan commented Jan 5, 2024

I observe that the meanqual obtained now is not correct for ONT fastq data (far higher than the real value). Could this extra function be merged please to see if it helps or is the meanqual function wrong?
Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants