def load_fps(codes):
    print('Loading ligand fingerprint')
    fps = []
    for (i, code) in tqdm(enumerate(codes), total=len(codes)):
        path = ((DATADIR / code) / (code + '_ligand.pdb'))
        if (not path.exists()):
            fps.append(None)
            continue
        mol = Chem.MolFromPDBFile(str(path))
        if (mol is None):
            fps.append(None)
            continue
        fp = getProp(mol)
        fps.append(fp)
    notNone = sum([1 for i in fps if (i is not None)])
    print('succeed loaded {}/{}'.format(notNone, len(codes)))
    return fps
def load_fps(codes):
    print('Loading ligand fingerprint')
    fps = []
    for (i, code) in tqdm(enumerate(codes), total=len(codes)):
        path = ((DATADIR / code) / (code + '_ligand.pdb'))
        if (not path.exists()):
            fps.append(None)
            continue
        mol = Chem.MolFromPDBFile(str(path))
        if (mol is None):
            fps.append(None)
            continue
        fp = getProp(mol)
        fps.append(fp)
    notNone = sum([1 for i in fps if (i is not None)])
    print('succeed loaded {}/{}'.format(notNone, len(codes)))
    return fps