Skip to content

Commit

Permalink
Merge pull request #7 from HKU-BAL/develop
Browse files Browse the repository at this point in the history
Add support for 'N' bases
  • Loading branch information
chaklim authored Dec 9, 2019
2 parents 54c7dd4 + 98f1f7e commit c6fa4d4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions shared/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@
# H->A or C or T
# V->A or C or G
IUPAC_base_to_ACGT_base_dict = dict(zip(
"ACGTURYSWKMBDHV",
("A", "C", "G", "T", "T", "A", "C", "C", "A", "G", "A", "C", "A", "A", "A")
"ACGTURYSWKMBDHVN",
("A", "C", "G", "T", "T", "A", "C", "C", "A", "G", "A", "C", "A", "A", "A", "A")
))

IUPAC_base_to_num_dict = dict(zip(
"ACGTURYSWKMBDHV",
(0, 1, 2, 3, 3, 0, 1, 1, 0, 2, 0, 1, 0, 0, 0)
"ACGTURYSWKMBDHVN",
(0, 1, 2, 3, 3, 0, 1, 1, 0, 2, 0, 1, 0, 0, 0, 0)
))

BASIC_BASES = set("ACGTU")
Expand Down

0 comments on commit c6fa4d4

Please sign in to comment.