[A] per-cell-type gene detection / log-sum
  80000/295364 11s
  160000/295364 15s
  240000/295364 20s
  cells per type: {'B cells': 8837, 'Kupffer': 28246, 'T/ILC cells': 11978, 'cholangiocyte': 2213, 'endothelial': 32298, 'hepatocyte': 179655, 'mesenchymal': 22555, 'non-resident myeloid': 9582}
           cell_type  n_cells  sasp_detect_frac  sasp_log_mean  global_detect_frac
             B cells     8837          0.025873       0.047980            0.087224
             Kupffer    28246          0.079772       0.131323            0.087224
         T/ILC cells    11978          0.035752       0.075462            0.087224
       cholangiocyte     2213          0.067035       0.093358            0.087224
         endothelial    32298          0.072777       0.147933            0.087224
          hepatocyte   179655          0.100731       0.127386            0.087224
         mesenchymal    22555          0.081530       0.152582            0.087224
non-resident myeloid     9582          0.043627       0.083870            0.087224
[B] per-CT control sets: [95, 95, 95, 95, 95, 95, 95, 95] genes, union 746
[B] scanning X
  80000/295364 25s
  160000/295364 28s
  240000/295364 30s
 rank            cell_type  enrich_mean  median_diff_vs_hep     p_vs_hep     q_vs_hep   rho_age    q_age  sasp_detect_frac
    1        cholangiocyte     0.028482            0.007057 8.837103e-02 1.237194e-01 -0.015854 0.925797          0.067035
    2          mesenchymal     0.022473            0.000976 8.890016e-01 8.890016e-01  0.258808 0.170947          0.081530
    3           hepatocyte     0.021962            0.000000          NaN          NaN  0.272591 0.170947          0.100731
    4          endothelial     0.016985            0.000214 6.178650e-01 7.208425e-01 -0.353756 0.100529          0.072777
    5              Kupffer     0.001734           -0.020542 3.701643e-09 8.637168e-09  0.179175 0.358158          0.079772
    6 non-resident myeloid    -0.001915           -0.026811 4.474714e-08 7.830749e-08  0.454829 0.025537          0.043627
    7              B cells    -0.003055           -0.019643 5.584297e-10 1.954504e-09 -0.049005 0.873094          0.025873
    8          T/ILC cells    -0.003359           -0.020902 3.074092e-10 1.954504e-09  0.287905 0.170947          0.035752
figure written 33s
