Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add arithmetic meanqual #24

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Add arithmetic meanqual #24

wants to merge 2 commits into from

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