Skip to content

Commit

Permalink
-Fixed encoding in riplike(#22, #25)
Browse files Browse the repository at this point in the history
  • Loading branch information
kwade4 committed Aug 28, 2019
1 parent cfd731f commit f3c3225
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions poplars/riplike.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,10 @@ def encode(fasta):
assert "query" in bin_fasta, "Argument <fasta> must contain 'query' entry"
_ = bin_fasta.pop('CON_OF_CONS')

binary_nt = {' ': 0B00000, 'A': 0B00001, 'T': 0B00010, 'C': 0B00011, 'G': 0B00100,
'N': 0B00101, 'R': 0B00110, 'Y': 0B00111, 'K': 0B01000, 'M': 0B01001,
'S': 0B01010, 'W': 0B01011, 'B': 0B01100, 'D': 0B01101, 'H': 0B01110,
'V': 0B01111, 'X': 0B10000, '-': 0B1111}
binary_nt = {'A': 0B1000, 'T': 0B0100, 'G': 0B0010, 'C': 0B0001,
'R': 0B1010, 'Y': 0B0101, 'S': 0B0011, 'W': 0B1100,
'K': 0B0110, 'M': 0B1001, 'B': 0B0111, 'D': 0B1110,
'H': 0B1101, 'V': 0B1011, 'N': 0B1111, '-': 0B0000}

for h, s in bin_fasta.items():
seq = []
Expand Down

0 comments on commit f3c3225

Please sign in to comment.