Beispiel #1
0
def test_lookup_succeed_grhc38(grch38_lookup):
    assert grch38_lookup['rs56116432'] == QueryResult("C", ["T"], False)
Beispiel #2
0
def test_query_multi_alt_grch37():
    assert query_ensembl("rs60",
                         "GRCh37") == QueryResult("A", ["G", "T"], True)
Beispiel #3
0
def test_query_ensembl_known_rsid_grch37():
    assert query_ensembl("rs56116432",
                         "GRCh37") == QueryResult("C", ["T"], False)
Beispiel #4
0
def test_query_ensembl_unknown_minor_grch37():
    assert query_ensembl("rs3913290",
                         "GRCh37") == QueryResult("C", ["T"], None)
Beispiel #5
0
def test_lookup_table_load(lookup_table):
    lookup = RSLookup.from_path(lookup_table, "GRCh37")
    assert lookup._RSLookup__rsids == {
        "rs776746": QueryResult("C", ["T"], False),
        "rs497692": QueryResult("T", ["C"], False),
        "rs12248560": QueryResult("C", ["A", "T"], False),
        "rs768983": QueryResult("C", ["T"], False),
        "rs2032598": QueryResult("T", ["C"], False),
        "rs1884213": QueryResult("T", ["C"], True),
        "rs1633021": QueryResult("T", ["C"], False),
        "rs4735258": QueryResult("T", ["C"], False),
        "rs10373": QueryResult("A", ["G"], True),
        "rs2819561": QueryResult("A", ["G"], True),
        "rs7514030": QueryResult("T", ["C"], False),
        "rs7300444": QueryResult("C", ["T"], False),
        "rs622272": QueryResult("T", ["G"], True),
        "rs629562": QueryResult("A", ["G"], True),
        "rs2249028": QueryResult("G", ["A"], False),
        "rs2711823": QueryResult("G", ["A"], False),
        "rs1381532": QueryResult("A", ["G"], True),
        "rs4148973": QueryResult("T", ["G"], True),
        "rs2942": QueryResult("G", ["A"], True),
        "rs1019433": QueryResult("G", ["A"], False),
        "rs1037256": QueryResult("G", ["A", "C", "T"], True),
        "rs6124288": QueryResult("T", ["C"], False),
        "rs10203363": QueryResult("C", ["T"], False),
        "rs2229546": QueryResult("C", ["A", "G", 'T'], True),
        "rs4577050": QueryResult("G", ["A"], True),
        "rs9962023": QueryResult("T", ["C"], True),
        "rs9532292": QueryResult("A", ["G"], False),
        "rs10421632": QueryResult("G", ["A"], False),
        "rs4688963": QueryResult("T", ["C"], False),
        "rs2844682": QueryResult("G", ["A"], False),
        "rs1410592": QueryResult("G", ["A", "T"], True),
        "rs2228611": QueryResult("T", ["C"], True),
        "rs5993935": QueryResult("T", ["C"], False),
        "rs309557": QueryResult("T", ["C"], False),
        "rs2070203": QueryResult("G", ["A"], False),
        "rs8024825": QueryResult("A", ["G"], False),
        "rs9528543": QueryResult("A", ['G'], False),
        "rs9361875": QueryResult("C", ["T"], False),
        "rs9837496": QueryResult("C", ["A", "T"], False),
        "rs10965655": QueryResult("T", ["C"], False),
        "rs357004": QueryResult("A", ["G"], True),
        "rs998132": QueryResult("G", ["A"], False),
        "rs4675": QueryResult("T", ["C"], True),
        "rs17548783": QueryResult("T", ["C"], False),
        "rs17686195": QueryResult("T", ["C"], False),
        "rs17476242": QueryResult("G", ["A"], False),
        "rs2297995": QueryResult("G", ["A"], True),
        "rs349047": QueryResult("G", ["A"], False),
        "rs3912984": QueryResult("T", ["C"], True),
        "rs4617548": QueryResult("A", ["G"], True),
        "rs3913290": QueryResult("C", ["T"], None),
        "rs1147504": QueryResult("G", ["A"], True),
        "rs10883099": QueryResult("G", ["A"], True),
        "rs2395029": QueryResult("T", ["G"], False),
        "rs2980300": QueryResult("T", ["C"], True),
        "rs10907175": QueryResult("A", ["C"], False),
        "rs2887286": QueryResult("T", ["C"], True),
        "rs307378": QueryResult("T", ["A", "G"], True),
        "rs6696609": QueryResult("C", ["G", "T"], False),
        "rs3737728": QueryResult("A", ["C", "G", "T"], True),
        "rs12939215": QueryResult("A", ["C"], None)
    }