C:\Users\jinweili\Desktop\Liver_Ageing_NatCommun_Submission_2026-11-09\P1_age_specific_multimodal_2026-11-11\Mechanism_MultiOmic_v96\scripts\proteome_sasp_clock_modules.py:240: Pandas4Warning: Starting with pandas version 4.0 all arguments of mean will be keyword-only.
  Z = pm.sub(pm.mean(1), axis=0).div(pm.std(1).replace(0, np.nan), axis=0)
C:\Users\jinweili\Desktop\Liver_Ageing_NatCommun_Submission_2026-11-09\P1_age_specific_multimodal_2026-11-11\Mechanism_MultiOmic_v96\scripts\proteome_sasp_clock_modules.py:240: Pandas4Warning: Starting with pandas version 4.0 all arguments of std will be keyword-only.
  Z = pm.sub(pm.mean(1), axis=0).div(pm.std(1).replace(0, np.nan), axis=0)
C:\Users\jinweili\Desktop\Liver_Ageing_NatCommun_Submission_2026-11-09\P1_age_specific_multimodal_2026-11-11\Mechanism_MultiOmic_v96\scripts\proteome_sasp_clock_modules.py:245: Pandas4Warning: Starting with pandas version 4.0 all arguments of mean will be keyword-only.
  mod_scores[m] = Z.loc[gg].mean(0)
C:\Users\jinweili\Desktop\Liver_Ageing_NatCommun_Submission_2026-11-09\P1_age_specific_multimodal_2026-11-11\Mechanism_MultiOmic_v96\scripts\proteome_sasp_clock_modules.py:247: Pandas4Warning: Starting with pandas version 4.0 all arguments of mean will be keyword-only.
  sasp_score = Z.loc[sorted(set(sasp_prot) & set(Z.index))].mean(0)
SASP mapped: 11 ['Axl', 'C3', 'Fas', 'Icam1', 'Igfbp7', 'Il18', 'Mmp9', 'Nampt', 'Tgfb1', 'Thbs1', 'Vcam1']
clock mapped: 57 both: ['Icam1']
         comparison  n1   n2  mean_rho1  mean_rho2  median_rho1  median_rho2  delta_mean  wilcoxon_p   perm_p  frac_abs_gt_0_5_set1  frac_abs_gt_0_5_set2  wilcoxon_q   perm_q
 SASP_vs_background  11 6736   0.662563  -0.130782     0.751860    -0.206155    0.793346    0.000008 0.000050              0.727273              0.480107    0.000017 0.000075
clock_vs_background  56 6736   0.237988  -0.130782     0.551769    -0.206155    0.368770    0.000011 0.000050              0.750000              0.480107    0.000017 0.000075
      SASP_vs_clock  11   56   0.662563   0.237988     0.751860     0.551769    0.424575    0.125390 0.041448              0.727273              0.750000    0.125390 0.041448
signature aging_definition  n_signature  n_aging  n_in_both  expected  odds_ratio  OR_lo95   OR_hi95     fisher_p         bh_q
     SASP        age_FDR05           11     2800          8  4.527414    3.820439 1.001038 12.091874 6.034979e-02 6.897119e-02
     SASP    top10_abs_rho           11      754          4  1.219168    4.603429 1.497550 15.583074 2.611141e-02 4.177825e-02
     SASP     age_up_FDR05           11      991          8  1.602381   15.758562 4.123869 49.902891 2.162489e-05 5.766637e-05
     SASP   age_down_FDR05           11     1809          0  2.925033    0.000000 0.007052  2.033125 4.405670e-02 5.874227e-02
    clock        age_FDR05           57     2800         40 23.460238    3.398124 1.903731  5.867275 1.006631e-05 4.026524e-05
    clock    top10_abs_rho           57      754         16  6.317507    3.176945 1.819291  5.751759 3.209359e-04 6.418718e-04
    clock     age_up_FDR05           57      991         28  8.303249    5.798117 3.450123  9.747408 5.638746e-10 4.510997e-09
    clock   age_down_FDR05           57     1809         12 15.156990    0.734409 0.403603  1.417841 4.512000e-01 4.512000e-01
     group    n  spearman_rho   spearman_p  sign_concordance  sign_binom_p  median_abs_protein_rho  median_abs_rna_rho  frac_protein_abs_gt_rna  mean_delta_abs   spearman_q
      SASP   11      0.475762 1.391020e-01          1.000000  9.765625e-04                0.751860            0.666973                 0.727273        0.073863 1.391020e-01
     clock   56      0.810209 3.919761e-14          0.892857  1.018209e-09                0.745797            0.763987                 0.482143        0.029658 5.879641e-14
background 6487      0.589416 0.000000e+00          0.723601 4.061358e-294                0.485071            0.400184                 0.584554        0.066245 0.000000e+00
SASP vs bg sign-rate Fisher: SignificanceResult(statistic=inf, pvalue=np.float64(0.04195786344137313))
LFC SASP: {'n': 11, 'spearman': 0.7727272727272727, 'p': 0.005299487178643862, 'sign_conc': 0.9090909090909091} clock: {'n': 52, 'spearman': 0.8601553829078801, 'p': 3.1095020119554653e-16, 'sign_conc': 0.9038461538461539}
  gene   rho_age  fdr_age  logFC_30v6_supplied  fdr_supplied              module   rho_M06    p_M06  rho_SASPscore  p_SASPscore  rho_age_from_matrix  p_vs_age    q_M06  q_SASPscore  q_vs_age
 Plin2 -0.812494 0.000818            -0.674664      0.039938                grey -0.744118 0.000948      -0.655882     0.005801            -0.812494  0.000131 0.010431     0.027260  0.001441
  Cd36 -0.266789 0.428378            -0.150760      0.262128                 M08 -0.273529 0.305323      -0.379412     0.147227            -0.266789  0.317867 0.465836     0.231357  0.469119
 Apoa4  0.048507 0.897004             0.031265      0.930819                 M16  0.255882 0.338790       0.244118     0.362213             0.048507  0.858414 0.465836     0.498044  0.928957
   Lpl  0.278916 0.405364             0.142243      0.703994                 M04  0.182353 0.499075       0.011765     0.965508             0.278916  0.295511 0.609980     0.965508  0.469119
  Fasn -0.254662 0.452564            -0.401158      0.451480                 M09 -0.352941 0.179959      -0.411765     0.113034            -0.254662  0.341178 0.329924     0.207229  0.469119
  Scd1 -0.291043 0.383406            -0.615812      0.412453                 M02 -0.423529 0.102109      -0.464706     0.069744            -0.291043  0.274118 0.280801     0.191795  0.469119
 Cpt1a  0.218282 0.529018             0.064789      0.401784                 M02  0.091176 0.737005       0.097059     0.720651             0.218282  0.416696 0.803420     0.792716  0.509295
 Acaca -0.024254 0.944014            -0.113503      0.795414 not_in_module_table -0.067647 0.803420      -0.117647     0.664341            -0.024254  0.928957 0.803420     0.792716  0.928957
Srebf1 -0.339550 0.296796            -0.374599      0.101884                 M09 -0.355882 0.176104      -0.426471     0.099499            -0.339550  0.198211 0.329924     0.207229  0.469119
  Mttp -0.521452 0.081846            -0.161981      0.353968                 M09 -0.688235 0.003204      -0.641176     0.007434            -0.521452  0.038312 0.011748     0.027260  0.183550
  Apoe -0.497198 0.101155            -0.177933      0.165239                 M16 -0.691176 0.003025      -0.773529     0.000439            -0.497198  0.050059 0.011748     0.004833  0.183550
M06 hypergeom: 1.0 SASP score vs age: SignificanceResult(statistic=np.float64(0.861001468878982), pvalue=np.float64(1.8465634979501244e-05))
M06 score vs age: SignificanceResult(statistic=np.float64(0.9216353751380654), pvalue=np.float64(3.9482464020797145e-07))
P1 done -> C:/Users/jinweili/Desktop/Liver_Ageing_NatCommun_Submission_2026-11-09/P1_age_specific_multimodal_2026-11-11\Mechanism_MultiOmic_v96
