From 98f1f7ecc5fe9037e5bc146a39a8faae7772d7ec Mon Sep 17 00:00:00 2001 From: chaklim Date: Mon, 9 Dec 2019 11:40:55 +0800 Subject: [PATCH] Add support for 'N' bases --- shared/utils.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/shared/utils.py b/shared/utils.py index d68256e..12f6139 100644 --- a/shared/utils.py +++ b/shared/utils.py @@ -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")