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

Khmer (specifically reverse_complement) only intended for upper-case sequences? #1904

Open
dkoslicki opened this issue Mar 20, 2020 · 2 comments

Comments

@dkoslicki
Copy link

Many reference FASTA/Q files have upper/lower case characters due to masking of low complexity sequences (like here or here).

I've noticed that:

>>>import khmer
>>>khmer.reverse_complement("c")
'c'

yet

>>>import khmer
>>>khmer.reverse_complement("C")
'G'

Are the functionalities of khmer only intended for upper-case characters?

Note khmer.__version__ is 2.1.1

@ctb
Copy link
Member

ctb commented Mar 22, 2020

hi @dkoslicki for 3.x, we significantly redid this - suggest installing latest conda package or latest master. See #1590 - it doesn't lay out the changes in detail, unfortunately, but should address the uppercase/lowercase issue.

@ctb
Copy link
Member

ctb commented Mar 22, 2020

>>> import khmer
>>> khmer.__version__
'3.0.0a3'
>>> import khmer
>>> khmer.reverse_complement("c")
'G'
>>> khmer.reverse_complement("C")
'G'
>>> 

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

No branches or pull requests

2 participants