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

Percent bases below cutoffs #1

Open
dariober opened this issue Feb 21, 2020 · 0 comments
Open

Percent bases below cutoffs #1

dariober opened this issue Feb 21, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@dariober
Copy link
Owner

dariober commented Feb 21, 2020

It would be useful to report the percent bases below given quality cutoffs. Like:

fxstats -B 5,10,20 in.fq

n_seq              13962380
n_bases            1047588337
mean_length        75.03
median_length      76.00
mean_read_quality  26.05
bases_below_Q5      1.23%
bases_below_Q10     10.3%
bases_below_Q20     20.3%
...

Useful to know how much data we throw away when filtering for base quality.

Basically we need an array similar to nt_counter in struct results. We iterate through the quality string and increment the corresponding char.

long baseq_counter[NCHARS] = {0};

// In function scan_file add
count_nt(seq->quality.s, seq_len, results->baseq_counter);
@dariober dariober added the enhancement New feature or request label Feb 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant