Skip to content

Commit

Permalink
added some forgotten ambiguous nucleotides
Browse files Browse the repository at this point in the history
  • Loading branch information
HadrienG committed Nov 20, 2018
1 parent 1a986c9 commit 944cbdc
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions iss/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,10 @@ def rev_comp(s):
"""
bases = {
"a": "t", "c": "g", "g": "c", "t": "a", "y": "r", "r": "y", "w": "w",
"s": "s", "k": "m", "m": "k", "n": "n", "A": "T", "C": "G", "G": "C",
"T": "A", "Y": "R", "R": "Y", "W": "W", "S": "S", "K": "M", "M": "K",
"N": "N"}
"s": "s", "k": "m", "m": "k", "n": "n", "b": "v", "v": "b", "d": "h",
"h": "d", "A": "T", "C": "G", "G": "C", "T": "A", "Y": "R", "R": "Y",
"W": "W", "S": "S", "K": "M", "M": "K", "N": "N", "B": "V", "V": "B",
"D": "H", "H": "D"}
sequence = list(s)
complement = "".join([bases[b] for b in sequence])
reverse_complement = complement[::-1]
Expand Down

0 comments on commit 944cbdc

Please sign in to comment.