Exemplo n.º 1
0
def test_is_calpha_trace_true_unk():
    """Tests is_calpha_trace."""
    pdb_file_path = "pdbb/tests/pdb/files/1efg.pdb"
    pdb_id = "1efg"
    structure = get_structure(pdb_file_path, pdb_id)
    chains = list(structure.get_chains())
    result = is_calpha_trace(chains[1])
    eq_(result, True)
    result = is_calpha_trace(chains[2])
    eq_(result, True)
Exemplo n.º 2
0
def test_is_calpha_trace_false_nuc():
    """Tests is_calpha_trace."""
    pdb_file_path = "pdbb/tests/pdb/files/100d.pdb"
    pdb_id = "100d"
    structure = get_structure(pdb_file_path, pdb_id)
    chain = structure.get_chains().next()
    result = is_calpha_trace(chain)
    eq_(result, False)
Exemplo n.º 3
0
def test_is_calpha_trace_true():
    """Tests is_calpha_trace."""
    pdb_file_path = "pdbb/tests/pdb/files/1efg.pdb"
    pdb_id = "1efg"
    structure = get_structure(pdb_file_path, pdb_id)
    chain = structure.get_chains().next()
    result = is_calpha_trace(chain)
    eq_(result, True)
Exemplo n.º 4
0
def test_is_calpha_trace_true_2():
    """Tests is_calpha_trace."""
    pdb_file_path = "pdbb/tests/pdb/files/3cw1.pdb"
    pdb_id = "3cw1"
    structure = get_structure(pdb_file_path, pdb_id)
    chains = structure.get_chains()
    for c in chains:
        cid = c.get_id()
        if cid in ("D", "S", "T", "U", "A", "H", "I", "J", "B", "M", "N", "O",
                   "C", "P", "Q", "R", "1", "2", "F", "Z", "E", "W", "X", "Y",
                   "3", "5", "G", "6", "7", "8", "K", "0", "9", "L", "I"):
            result = is_calpha_trace(c)
            eq_(result, True)
Exemplo n.º 5
0
def test_is_calpha_trace_none():
    """Tests is_calpha_trace."""
    is_calpha_trace(None)