Example #1
0
def test_count_nts__simple_mixed_case():
    assert_equal(count_nts("atATNcaGCC"), {
        "A": 3,
        "C": 3,
        "G": 1,
        "T": 2,
        "N": 1
    })
Example #2
0
def test_count_nts__complex():
    assert_equal(count_nts("NNBKVGRVMM"), {
        "N": 2,
        "B": 1,
        "K": 1,
        "V": 2,
        "G": 1,
        "R": 1,
        "M": 2
    })
Example #3
0
def test_count_nts__bad_nt_lowercase():
    count_nts("atATNcoGCC")  # 'o' not UIPAC
Example #4
0
def test_count_nts__bad_nt():
    count_nts("TTAPGTGTCT")  # 'P' not UIPAC
Example #5
0
def test_count_nts__complex_mixed_case():
    assert_equal(count_nts(""), {})
Example #6
0
def test_count_nts__empty_str():
    assert_equal(count_nts(""), {})
Example #7
0
def test_count_nts__simple():
    assert_equal(count_nts("TTATGTGTCT"), {"A": 1, "C": 1, "G": 2, "T": 6})
Example #8
0
def test_count_nts__bad_nt():
    count_nts("TTAPGTGTCT") # 'P' not UIPAC
Example #9
0
def test_count_nts__bad_nt_lowercase():
    count_nts("atATNcoGCC") # 'o' not UIPAC
Example #10
0
def test_count_nts__complex_mixed_case():
    assert_equal(count_nts(""), {})
Example #11
0
def test_count_nts__complex():
    assert_equal(count_nts("NNBKVGRVMM"), {"N" : 2, "B" : 1, "K" : 1, "V" : 2, "G" : 1,
                                           "R" : 1, "M" : 2})
Example #12
0
def test_count_nts__simple_mixed_case():
    assert_equal(count_nts("atATNcaGCC"), {"A" : 3, "C" : 3, "G" : 1, "T" : 2, "N" : 1})
Example #13
0
def test_count_nts__simple():
    assert_equal(count_nts("TTATGTGTCT"), {"A" : 1, "C" : 1, "G" : 2, "T" : 6})
Example #14
0
def test_count_nts__empty_str():
    assert_equal(count_nts(""), {})