-
Notifications
You must be signed in to change notification settings - Fork 27
Add the phred_quality_score
method to the Python Record
class
#98
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@apcamargo I think it's probably worth adding this to SequenceRecord
in the underlying Rust implementation.
I think the best place is probably |
@audy I updated this PR to use the functions from the Rust library. I also moved the function out of the
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me!
I think I would prefer a method that returns a new |
Agreed! Let me know how you prefer to do this, since it would break the API |
This PR introduces the
decode_phred
function that takes in a string representing Phred-encoded quality scores and returns a tuple of integers representing the quality scores themselves. The function uses Phred+33 by default and allows the user to use Phred+64 via thebase_64
parameter.