-
Notifications
You must be signed in to change notification settings - Fork 8
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
Implement reverse complement. #65
Conversation
Hello @rhpvorderman , Best regards, |
So there is no need to convert them. For all undefined cases, the table returns the same character. I can add a comment in the conversion table code. EDIT: To eloborate further: in C a |
Excellent! Thanks for the clarification. |
Hello again @rhpvorderman ,
|
Thanks! That saved me quite some work! |
f2afa69
to
5930888
Compare
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.
Nice! I thought you had limited time, though ... :-P
Feel free to ignore my comments on generate_conversion_tables.py
.
@marcelm , all done! Thanks for the review comments on the conversion script. It looks quite a it cleaner now. |
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.
Thanks for the changes! I found two more small things. Can you fix that as well? Feel free to merge yourself when you have done so.
Shall I make a new release after this? I think version 0.8.0 would be appropriate.
SequenceRecord("name1", | ||
"nvhdbmrswykaacgtNVHDBMRSWYKAACGT", | ||
"/E///AEEEE/EEEEEEEEEEEE/E6/AAAA/") | ||
|
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.
I just realized you need to test whether this works:
SequenceRecord("name", "AACT", None).reverse_complement() == SequenceRecord("name", "AGTT", None)
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.
Can you clarify? Isn't that already tested? Edit. I see now. None qualities. Didn't think of that, will do.
Please let me remove BytesSequenceRecord first (#66). I won't delay. I promise :). |
Co-authored-by: Marcel Martin <mail@marcelm.net>
b38af98
to
f3307fa
Compare
Testing is not as extensive as it could be. Not all possible conversions are checked.Now added, thanks to @fjossandon.Since I have to create a lot of conversion tables for htspy already I had some code at hand for generating the conversion table. I copied it into this project. The original is here: https://github.com/rhpvorderman/htspy/blob/develop/generate_conversion_tables.py
This fixes #64