==========================================================================
LIPIDOME <-> SASP LINKAGE  |  seed=42  nperm=20000
==========================================================================

[1] Class summary
lipid_class  n  mean_log2FC  sem_log2FC  n_sig  p_perm  q_perm  median_fdr  cohens_d  p_mannwhitney  q_mannwhitney
        DAG 10       1.6177      0.2447      4  0.0016  0.0066      0.1149    1.9946         0.0317         0.0847
         CL  6       1.1263      0.2042      2  0.1292  0.2585      0.0909    2.2822         0.0079         0.0635
     lysoPE  3       1.0413      0.1370      0  0.2627  0.3502      0.1590    0.9785         0.3095         0.3095
         PE 15      -0.4036      0.2190      5  0.7616  0.7616      0.1494   -0.9952         0.0952         0.1270
     lysoPC  8      -0.4571      0.2264      1  0.6523  0.7455      0.3919   -0.8792         0.3095         0.3095
         SM 11      -0.8423      0.2079      1  0.2376  0.3502      0.1204   -1.9132         0.0556         0.1111
         PC 23      -0.9753      0.1691      9  0.0472  0.1259      0.1038   -1.9939         0.0159         0.0635
        TAG 65      -1.0717      0.1159      1  0.0000  0.0004      0.2593   -0.9211         0.0952         0.1270

[2] SASP-linked enrichment (PC/TAG/CL/lysoPC vs rest, FDR<0.05)
  linked  13/102   non-linked 10/39  OR=0.424  Fisher P=0.0768
  PC+CL   11/29  OR=5.093  Fisher P=0.0012

[3] Sample-level (n=5 vs 5)
lipid_class  young_mean  old_mean  diff_old_minus_young  cohens_d  p_mannwhitney  q_mannwhitney
         CL     -0.6544    0.6544                1.3088    2.2822         0.0079         0.0635
        DAG     -0.5837    0.5837                1.1674    1.9946         0.0317         0.0847
     lysoPE     -0.4691    0.4691                0.9383    0.9785         0.3095         0.3095
     lysoPC      0.3723   -0.3723               -0.7445   -0.8792         0.3095         0.3095
        TAG      0.3516   -0.3516               -0.7033   -0.9211         0.0952         0.1270
         PE      0.3039   -0.3039               -0.6077   -0.9952         0.0952         0.1270
         SM      0.5290   -0.5290               -1.0580   -1.9132         0.0556         0.1111
         PC      0.6020   -0.6020               -1.2041   -1.9939         0.0159         0.0635
  PCA: component  var_explained  young_mean  old_mean  p_welch  cohens_d
      PC1         0.5373      7.0846   -7.0846   0.0205   -1.7529
      PC2         0.2006     -3.2701    3.2701   0.1003    1.0793
      PC3         0.1236     -1.3467    1.3467   0.4140    0.4922

[4] Enzyme concordance
  pairs=60 unique enzymes=37
  synthesis-only concordance 13/19, binomial P=0.08353; TAG 7/8 P=0.03516
lipid_class  n_synthesis_enzymes  n_down  n_up  mean_synthesis_lfc  class_mean_log2FC  concordant_direction  binom_p_greater
        DAG                    1       1     0              -0.468              1.618                 False            1.000
         CL                    3       2     1              -0.128              1.126                 False            0.875
         PE                    3       2     1              -0.052             -0.404                  True            0.500
         PC                    4       3     1              -0.153             -0.975                  True            0.312
        TAG                   10       7     1              -0.308             -1.072                  True            0.035
  synthesis pairs: rho(enzyme lfc, class mean lfc)=0.145 P=0.5295 n=21
  all +pairs     : rho=-0.185 P=0.2812 n=36
  age-rho pairs  : rho(enzyme age rho, class mean lfc)=-0.145 P=0.3997
  enzyme SASP rho vs age rho: rho=0.424 P=0.008917 n=37
  class-level: rho(mean enzyme SASP rho, class lfc)=-0.143 P=0.7599 n=7
   gene lipid_class        role  expected_sign  logFC_30v6  fdr_diff  rho_age  fdr_age  sasp_rho  sasp_q module  concordant
  Ces2c         TAG  hydrolysis             -1      -1.290     0.017   -0.946    0.000    -0.060   0.895    M16         0.0
  Ces2c         DAG  production              1      -1.290     0.017   -0.946    0.000    -0.060   0.895    M16         0.0
  Ces3a         DAG  production              1      -0.990     0.182   -0.970    0.000    -0.167   0.631    M14         0.0
  Ces3a         TAG  hydrolysis             -1      -0.990     0.182   -0.970    0.000    -0.167   0.631    M14         0.0
  Dgat2         TAG   synthesis              1      -0.878     0.122   -0.788    0.002    -0.282   0.330    NaN         1.0
  Dgat2         DAG consumption             -1      -0.878     0.122   -0.788    0.002    -0.282   0.330    NaN         1.0
   Gpd1         TAG   synthesis              1      -0.790     0.037   -0.958    0.000     0.065   0.885    M06         1.0
   Mgll         TAG  hydrolysis             -1      -0.666     0.026   -0.849    0.000    -0.348   0.190    M21         0.0
   Mgll         DAG  production              1      -0.666     0.026   -0.849    0.000    -0.348   0.190    M21         0.0
 Lypla1      lysoPE consumption             -1      -0.607     0.019   -0.970    0.000    -0.153   0.667    NaN         1.0
 Lypla1      lysoPC consumption             -1      -0.607     0.019   -0.970    0.000    -0.153   0.667    NaN         0.0
 Lypla1          PC  hydrolysis             -1      -0.607     0.019   -0.970    0.000    -0.153   0.667    NaN         0.0
 Agpat2         TAG   synthesis              1      -0.533     0.055   -0.934    0.000     0.125   0.738    M16         1.0
   Lipe         TAG  hydrolysis             -1      -0.504     0.026   -0.837    0.000     0.152   0.671    NaN         0.0
   Lipe         DAG  production              1      -0.504     0.026   -0.837    0.000     0.152   0.671    NaN         0.0
 Pla2g6          PC  hydrolysis             -1      -0.499     0.210   -0.303    0.361    -0.121   0.748    NaN         0.0
 Pla2g6      lysoPE  production              1      -0.499     0.210   -0.303    0.361    -0.121   0.748    NaN         0.0
 Pla2g6          PE  hydrolysis             -1      -0.499     0.210   -0.303    0.361    -0.121   0.748    NaN         0.0
 Pla2g6      lysoPC  production              1      -0.499     0.210   -0.303    0.361    -0.121   0.748    NaN         1.0
  Lpin2         DAG   synthesis              1      -0.468     0.031   -0.764    0.003    -0.378   0.140    M02         0.0
  Lpin2         TAG   synthesis              1      -0.468     0.031   -0.764    0.003    -0.378   0.140    M02         1.0
  Abhd6         TAG  hydrolysis             -1      -0.442     0.021   -0.861    0.000    -0.331   0.222    M09         0.0
  Abhd6         DAG  production              1      -0.442     0.021   -0.861    0.000    -0.331   0.222    M09         0.0
   Lipc          PC  hydrolysis             -1      -0.386     0.052   -0.788    0.002     0.161   0.647    M03         0.0
   Lipc      lysoPC  production              1      -0.386     0.052   -0.788    0.002     0.161   0.647    M03         1.0
   Lipc      lysoPE  production              1      -0.386     0.052   -0.788    0.002     0.161   0.647    M03         0.0
   Chka          PC   synthesis              1      -0.363     0.294   -0.606    0.033     0.188   0.576    M04         1.0
 Ptpmt1          CL   synthesis              1      -0.334     0.016   -0.849    0.000     0.012   0.981    NaN         0.0
   Lipa         DAG  production              1      -0.299     0.301   -0.461    0.135    -0.195   0.556    M21         0.0
   Lipa         TAG  hydrolysis             -1      -0.299     0.301   -0.461    0.135    -0.195   0.556    M21         0.0
 Pnpla8          CL remodelling             -1      -0.289     0.088   -0.897    0.000    -0.437   0.067    NaN         1.0
  Dgat1         DAG consumption             -1      -0.271     0.099   -0.812    0.001    -0.027   0.957    NaN         1.0
  Dgat1         TAG   synthesis              1      -0.271     0.099   -0.812    0.001    -0.027   0.957    NaN         1.0
   Chkb          PC   synthesis              1      -0.249     0.039   -0.825    0.001    -0.007   0.988    M02         1.0
Selenoi          PE   synthesis              1      -0.248     0.065   -0.715    0.007    -0.051   0.910    NaN         1.0
  Smpd1          SM  hydrolysis             -1      -0.229     0.079   -0.679    0.012     0.244   0.422    NaN         0.0
   Gpd2         TAG   synthesis              1      -0.204     0.109   -0.764    0.003    -0.246   0.418   grey         1.0
 Pcyt1a          PC   synthesis              1      -0.142     0.055   -0.631    0.025    -0.087   0.834    NaN         1.0
   Pgs1          CL   synthesis              1      -0.131     0.289   -0.376    0.240     0.338   0.208    NaN         0.0
  Gpat4         TAG   synthesis              1      -0.126     0.712   -0.206    0.555    -0.376   0.144    M14         1.0
  Smpd2          SM  hydrolysis             -1      -0.065     0.760   -0.146    0.687     0.032   0.947    NaN         0.0
  Pcyt2          PE   synthesis              1      -0.052     0.881    0.085    0.824    -0.337   0.210    NaN         1.0
  Gpat3         TAG   synthesis              1       0.002     0.993   -0.012    0.970     0.071   0.870    M02         NaN
 Agpat5         TAG   synthesis              1       0.015     0.880   -0.061    0.874     0.239   0.436    NaN         NaN
  Smpd4          SM  hydrolysis             -1       0.016     0.837   -0.049    0.897     0.467   0.044    NaN         NaN
  Crls1          CL   synthesis              1       0.079     0.690    0.109    0.770     0.104   0.793    NaN         1.0
  Cept1          PC   synthesis              1       0.143     0.081    0.643    0.021    -0.118   0.755    NaN         0.0
  Cept1          PE   synthesis              1       0.143     0.081    0.643    0.021    -0.118   0.755    NaN         0.0
 Lpgat1         TAG   synthesis              1       0.173     0.200    0.243    0.479     0.318   0.248    NaN         0.0
  Nceh1         TAG  hydrolysis             -1       0.238     0.181    0.364    0.258    -0.140   0.700   grey         1.0
  Nceh1         DAG  production              1       0.238     0.181    0.364    0.258    -0.140   0.700   grey         1.0
Pla2g15      lysoPE  production              1       0.323     0.380    0.255    0.453     0.344   0.197    M08         1.0
Pla2g15          PC  hydrolysis             -1       0.323     0.380    0.255    0.453     0.344   0.197    M08         1.0
Pla2g15          PE  hydrolysis             -1       0.323     0.380    0.255    0.453     0.344   0.197    M08         1.0
Pla2g15      lysoPC  production              1       0.323     0.380    0.255    0.453     0.344   0.197    M08         0.0
  Smpd3          SM  hydrolysis             -1       0.472     0.099    0.740    0.004     0.132   0.719    M07         1.0
Pla2g4a      lysoPC  production              1       0.948     0.116    0.849    0.000     0.589   0.004    M06         0.0
Pla2g4a          PC  hydrolysis             -1       0.948     0.116    0.849    0.000     0.589   0.004    M06         1.0
 Lpcat2          PC remodelling              1       1.433     0.053    0.910    0.000     0.602   0.003    M06         0.0
 Lpcat2      lysoPC consumption             -1       1.433     0.053    0.910    0.000     0.602   0.003    M06         1.0

[5] Lipid gene set vs SASP-correlated genes
  lipid genes in scRNA=37; q<0.05 total=1785; overlap=3; expected=2.2; OR=1.409; P=0.4791

[6] Module linkage
  M06: 3 lipid enzymes / 403 genes; set size=19; OR=2.62 P=0.1304
  M06 lipid enzymes: ['Gpd1', 'Lpcat2', 'Pla2g4a']

[7] SASP group effect (scRNA donors, 13 vs 81 wk):
  young -0.446 vs old -0.416; d=0.061; Welch P=0.899
  age-group means:
    age_group  age_weeks   mean   std  count
        young       13.0 -0.446 0.349      8
      mid-age       53.0 -0.260 0.710      8
          old       81.0 -0.416 0.542      8
pre-geriatric      105.0 -0.008 0.473      8
    geriatric      121.5  1.130 1.571      8
  Kruskal-Wallis across 5 groups P=0.02807; young vs geriatric d=1.31, P=0.02526

Wrote:
  species_table  C:/Users/jinweili/Desktop/Liver_Ageing_NatCommun_Submission_2026-11-09/P1_age_specific_multimodal_2026-11-11\Mechanism_MultiOmic_v96\lipidome_sasp.tsv
  class_table    C:/Users/jinweili/Desktop/Liver_Ageing_NatCommun_Submission_2026-11-09/P1_age_specific_multimodal_2026-11-11\Mechanism_MultiOmic_v96\lipidome_class_summary_v96.tsv
  enzyme_table   C:/Users/jinweili/Desktop/Liver_Ageing_NatCommun_Submission_2026-11-09/P1_age_specific_multimodal_2026-11-11\Mechanism_MultiOmic_v96\lipidome_enzyme_link_v96.tsv
  module_table   C:/Users/jinweili/Desktop/Liver_Ageing_NatCommun_Submission_2026-11-09/P1_age_specific_multimodal_2026-11-11\Mechanism_MultiOmic_v96\module_sasp_context_v96.tsv
  summary        C:/Users/jinweili/Desktop/Liver_Ageing_NatCommun_Submission_2026-11-09/P1_age_specific_multimodal_2026-11-11\Mechanism_MultiOmic_v96\lipidome_summary.json
  figure_pdf     C:/Users/jinweili/Desktop/Liver_Ageing_NatCommun_Submission_2026-11-09/P1_age_specific_multimodal_2026-11-11\Mechanism_MultiOmic_v96\Fig_lipidome_SASP.pdf
  figure_png     C:/Users/jinweili/Desktop/Liver_Ageing_NatCommun_Submission_2026-11-09/P1_age_specific_multimodal_2026-11-11\Mechanism_MultiOmic_v96\Fig_lipidome_SASP.png
