saarantras1 commited on
Commit
f05c8dc
·
verified ·
1 Parent(s): 706261c

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +9 -48
README.md CHANGED
@@ -18,17 +18,17 @@ pretty_name: scMPRA stratified negative binomial fits
18
  Fitted parameters for every stratified negative binomial (NB) and
19
  zero-inflated negative binomial (ZINB) model reported in *Modeling,
20
  calibration, and power analysis of single-cell massively parallel reporter
21
- assays*. Fifteen fits over three published scMPRA datasets: three canonical
22
  (one per dataset, the model the paper's analyses use) and twelve
23
  counterfactuals kept so the model-selection comparisons can be reproduced.
24
 
25
- Two layers. The parameter tables are plain parquet and need nothing but
26
  pandas. The orthos are the complete fitted objects, loadable with
27
- `scMPRAforge`, each carrying the count table it was fit on.
28
 
29
  ## Files
30
 
31
- | file | rows | what it is |
32
  |---|---|---|
33
  | `fitted_means.parquet` | 45,296 | fitted mean and dispersion, one row per level |
34
  | `zero_inflation.parquet` | 6,016 | fitted zero inflation, ZINB fits only |
@@ -36,17 +36,6 @@ pandas. The orthos are the complete fitted objects, loadable with
36
  | `export_fits.py` | | the script that produced all three |
37
  | `orthos/<fit>/` | 15 | the complete fitted objects, one directory per fit |
38
 
39
- ### Why two tables
40
-
41
- A fit is stratified along one axis and estimates a mean for every level of the
42
- other: a by-cell-type fit gives one `mu` per CRE within each cell type, and a
43
- by-CRE fit one `mu` per cell type within each CRE. Both directions are
44
- released; they converge on the same estimates, which is itself a result in the
45
- paper.
46
-
47
- Zero inflation is **not** on that axis. It is fit per sequencing replicate, so
48
- `zero_inflation.parquet` is indexed by `rep_id` and cannot be joined onto a
49
- mean row. Dispersion (`theta`) is fit once per stratum and so repeats down it.
50
 
51
  ### Schema
52
 
@@ -70,17 +59,7 @@ and `level_axis` always `rep_id`.
70
  | `cohen` | Zhao et al. 2023, *Nat Genet* 55:346, [10.1038/s41588-022-01278-7](https://doi.org/10.1038/s41588-022-01278-7) | scMPRA, promoter variants in live mouse retinas |
71
  | `seelig` | Yin et al. 2025, *Cell Systems* 16:101302, [10.1016/j.cels.2025.101302](https://doi.org/10.1016/j.cels.2025.101302) | scMPRA of designed enhancers in HepG2/K562 |
72
 
73
- The lab code names are kept as identifiers so these join to the analysis code;
74
- cite the papers above.
75
-
76
- ## Which fit to use
77
-
78
- `fits.csv` carries `canonical`. The three canonical fits are the ones the paper
79
- uses; the rest vary one modelling decision at a time (NB against ZINB, how
80
- unobserved combinations are treated, whether a coarse transfection reporter
81
- expands to one zero or many) and exist so those choices can be re-examined.
82
- A counterfactual is not a worse fit of the same thing — it is a fit of a
83
- different assumption.
84
 
85
  ## Loading
86
 
@@ -94,12 +73,10 @@ canonical = set(fits.loc[fits.canonical, "fit"])
94
  mu = means[means.fit.isin(canonical) & (means.stratified_by == "cell_type")]
95
  ```
96
 
97
- No pickles, and nothing here needs `scMPRAforge` installed to read.
98
-
99
  ### Orthos
100
 
101
  Each ortho holds its training data in `training_data.scmpra/`: the count table
102
- as the fit saw it, after filtering and negative-control pooling, as parquet.
103
  `ortho.load` reads it from there, so an ortho loads and computes from any
104
  working directory.
105
 
@@ -112,32 +89,17 @@ o = ortho.load(client, "orthos", "seelig_cm_moib_nb_phantom")
112
  ```
113
 
114
  This needs `scMPRAforge` 0.1.0.dev1 or later
115
- (`pip install "scMPRAforge>=0.1.0.dev1"`). An older version loads the models
116
- and parameters but warns and leaves `training_data` as `None`.
117
-
118
- Orthos are pickles. Unpickling runs code, so load them only from a copy of
119
- this repository you trust.
120
 
121
- ## How they were fit
122
-
123
- Maximum likelihood via a TensorFlow solver, each on four CPU cores of an Intel
124
- Xeon 8562Y+ (Emerald Rapids) node with no GPU. Per-fit wall time and peak
125
- memory are reported in the paper. `fits.csv` records each fit's zero handling
126
- and the script that produced it.
127
 
128
  ## Licence and source data
129
 
130
- Two licences apply, by file:
131
 
132
- | files | licence | why |
133
  |---|---|---|
134
- | `orthos/seelig_*/` | [CC-BY-NC-4.0](https://creativecommons.org/licenses/by-nc/4.0/) | carry Yin et al.'s count table, published under CC-BY-NC-4.0 |
135
  | everything else | [CC-BY-4.0](https://creativecommons.org/licenses/by/4.0/) | our fits, and the `shendure` and `cohen` count tables, whose sources are CC-BY-4.0 |
136
 
137
- The parameter tables include the `seelig` fits; those are our estimates, not
138
- Yin et al.'s measurements, and are CC-BY-4.0 with the rest. Commercial use of
139
- the `seelig` orthos needs Yin et al.'s terms, not ours.
140
-
141
  The count tables are processed from the depositing studies' public data:
142
 
143
  | dataset | deposit | source terms |
@@ -146,7 +108,6 @@ The count tables are processed from the depositing studies' public data:
146
  | `cohen` | GEO [GSE212842](https://www.ncbi.nlm.nih.gov/geo/query/acc.cgi?acc=GSE212842), Zenodo [14907846](https://doi.org/10.5281/zenodo.14907846) | Zenodo deposit is CC-BY-4.0 |
147
  | `seelig` | GEO [GSE269037](https://www.ncbi.nlm.nih.gov/geo/query/acc.cgi?acc=GSE269037) (scMPRA), [GSE269036](https://www.ncbi.nlm.nih.gov/geo/query/acc.cgi?acc=GSE269036) (bulk) | paper is CC-BY-NC-4.0 |
148
 
149
- Cite the three papers alongside this release.
150
 
151
  ## Citation
152
 
 
18
  Fitted parameters for every stratified negative binomial (NB) and
19
  zero-inflated negative binomial (ZINB) model reported in *Modeling,
20
  calibration, and power analysis of single-cell massively parallel reporter
21
+ assays*. There are fifteen fits over three published scMPRA datasets: three canonical
22
  (one per dataset, the model the paper's analyses use) and twelve
23
  counterfactuals kept so the model-selection comparisons can be reproduced.
24
 
25
+ The parameter tables are plain parquet and need nothing but
26
  pandas. The orthos are the complete fitted objects, loadable with
27
+ `scMPRAforge`. Bounds objects derived from these fits are included with `scMPRAforge`.
28
 
29
  ## Files
30
 
31
+ | file | rows | description |
32
  |---|---|---|
33
  | `fitted_means.parquet` | 45,296 | fitted mean and dispersion, one row per level |
34
  | `zero_inflation.parquet` | 6,016 | fitted zero inflation, ZINB fits only |
 
36
  | `export_fits.py` | | the script that produced all three |
37
  | `orthos/<fit>/` | 15 | the complete fitted objects, one directory per fit |
38
 
 
 
 
 
 
 
 
 
 
 
 
39
 
40
  ### Schema
41
 
 
59
  | `cohen` | Zhao et al. 2023, *Nat Genet* 55:346, [10.1038/s41588-022-01278-7](https://doi.org/10.1038/s41588-022-01278-7) | scMPRA, promoter variants in live mouse retinas |
60
  | `seelig` | Yin et al. 2025, *Cell Systems* 16:101302, [10.1016/j.cels.2025.101302](https://doi.org/10.1016/j.cels.2025.101302) | scMPRA of designed enhancers in HepG2/K562 |
61
 
62
+ The lab names are kept as identifiers so these join to the analysis code. Make sure you cite the papers above in downstream analysis.
 
 
 
 
 
 
 
 
 
 
63
 
64
  ## Loading
65
 
 
73
  mu = means[means.fit.isin(canonical) & (means.stratified_by == "cell_type")]
74
  ```
75
 
 
 
76
  ### Orthos
77
 
78
  Each ortho holds its training data in `training_data.scmpra/`: the count table
79
+ post after filtering and negative-control pooling.
80
  `ortho.load` reads it from there, so an ortho loads and computes from any
81
  working directory.
82
 
 
89
  ```
90
 
91
  This needs `scMPRAforge` 0.1.0.dev1 or later
92
+ (`pip install "scMPRAforge>=0.1.0.dev1"`).
 
 
 
 
93
 
 
 
 
 
 
 
94
 
95
  ## Licence and source data
96
 
 
97
 
98
+ | files | licence | reason |
99
  |---|---|---|
100
+ | `orthos/seelig_*/` | [CC-BY-NC-4.0](https://creativecommons.org/licenses/by-nc/4.0/) | contains Yin et al.'s count table, published under CC-BY-NC-4.0 |
101
  | everything else | [CC-BY-4.0](https://creativecommons.org/licenses/by/4.0/) | our fits, and the `shendure` and `cohen` count tables, whose sources are CC-BY-4.0 |
102
 
 
 
 
 
103
  The count tables are processed from the depositing studies' public data:
104
 
105
  | dataset | deposit | source terms |
 
108
  | `cohen` | GEO [GSE212842](https://www.ncbi.nlm.nih.gov/geo/query/acc.cgi?acc=GSE212842), Zenodo [14907846](https://doi.org/10.5281/zenodo.14907846) | Zenodo deposit is CC-BY-4.0 |
109
  | `seelig` | GEO [GSE269037](https://www.ncbi.nlm.nih.gov/geo/query/acc.cgi?acc=GSE269037) (scMPRA), [GSE269036](https://www.ncbi.nlm.nih.gov/geo/query/acc.cgi?acc=GSE269036) (bulk) | paper is CC-BY-NC-4.0 |
110
 
 
111
 
112
  ## Citation
113