예제 #1
0
def retrieve_structures(cfg,log):
    final_list = None
    try:
        resList = []
        for item in cfg.pdbQueries:
            res = PDB.execute_advanced_query(log, cfg.pdbAdvancedSearchURL,item)
            resList.append(res.split('\n'))
                                
        log.info('Intersecting results...')
        final_list = list(eval(PDB.merge_results(resList)))
        final_list = filter(len,final_list)
    except:
        log.error(traceback.format_exc())
    
    return final_list
예제 #2
0
def retrieve_structures(cfg, log):
    final_list = None
    try:
        resList = []
        for item in cfg.pdbQueries:
            res = PDB.execute_advanced_query(log, cfg.pdbAdvancedSearchURL,
                                             item)
            resList.append(res.split('\n'))

        log.info('Intersecting results...')
        final_list = list(eval(PDB.merge_results(resList)))
        final_list = filter(len, final_list)
    except:
        log.error(traceback.format_exc())

    return final_list