Exemplo n.º 1
0
def figures(recon_fname, exclude_recon_fname, kegg_fname, all_ppis_fname, 
        recon_pairs=None, do_plot_cdf=False, return_pairs=False):
    rpairs = recon_pairs or load_seq_pairs(recon_fname,
            ut.load_list(exclude_recon_fname))
    kpairs = load_kegg_sequentials(kegg_fname)
    pdk = pd.PairDict(kpairs)
    intpairs = [p for p in rpairs if pdk.contains(p)]
    ppis = pu.load_ppis(all_ppis_fname) 
    plot_pairs_randoms_etc(intpairs, ppis)
    if do_plot_cdf:
        plot_cdf_pos_randoms(intpairs, ppis)
    if return_pairs:
        return intpairs
Exemplo n.º 2
0
def load_cxppis(fname='/Users/blakeweb/Dropbox/complex/shared_complexes/predictions/Hs_2sp_v35.6_clustered_ppis_981cxs.txt'):
    return pu.load_ppis(fname)
Exemplo n.º 3
0
def load_ppis(fname='/Users/blakeweb/Dropbox/complex/shared_complexes/predictions/Hs_2sp_35.6_ppis_highconfidence_from35.3_ppis_goldlabeled_top16655_cumprec70pct.txt'):
    return pu.load_ppis(fname)