def make_psubs_nmatch(psubs, verbose, debug): with verb_print('making psubs nmatch', verbose, True, True): psubs_nmatch = nmatch(psubs) if debug: print banner('NMATCH(PSUBS)') print pformat(psubs_nmatch) print return psubs_nmatch
def make_pgoldclus_nmatch(pgoldclus, verbose, debug): with verb_print('constructing pgoldclus_nmatch', verbose, True, True): pgoldclus_nmatch = nmatch(pgoldclus) if debug: print banner('NMATCH(PGOLDCLUS)') print pformat(pgoldclus_nmatch) print return pgoldclus_nmatch
def make_pgold_nmatch(pgold, verbose, debug): with verb_print('constructing nmatch_gold', verbose, True, True): nmatch_gold = nmatch(pgold) if debug: print banner('nmatch_gold') for k, v in nmatch_gold.iteritems(): print k, v return nmatch_gold
def make_psubs_pgold_nmatch(pgold, psubs, verbose, debug): with verb_print('making psubs/pgold nmatch', verbose, True, True): psubs_pgold_intersect = intersection(pgold, psubs) psubs_pgold_nmatch = nmatch(psubs_pgold_intersect) if debug: print banner('NMATCH(PSUBS/PGOLD)') print pformat(psubs_pgold_nmatch) print return psubs_pgold_nmatch
def make_pclus_pgoldclus_nmatch(pclus, pgoldclus, verbose, debug): with verb_print('making pclus/pgoldclus nmatch', verbose, True, True): pclus_pgoldclus_intersect = list(intersection(pclus, pgoldclus)) pclus_pgoldclus_nmatch = nmatch(pclus_pgoldclus_intersect) if debug: print banner('NMATCH(PCLUS/PGOLDCLUS)') print pformat(pclus_pgoldclus_nmatch) print return pclus_pgoldclus_nmatch