Dataset Preview
Duplicate
The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
The dataset generation failed
Error code:   DatasetGenerationError
Exception:    TypeError
Message:      int() argument must be a string, a bytes-like object or a real number, not 'NoneType'
Traceback:    Traceback (most recent call last):
                File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1531, in _prepare_split_single
                  for key, record in generator:
                                     ^^^^^^^^^
                File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 613, in wrapped
                  for item in generator(*args, **kwargs):
                              ~~~~~~~~~^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/webdataset/webdataset.py", line 127, in _generate_examples
                  for example_idx, example in enumerate(self._get_pipeline_from_tar(tar_path, tar_iterator)):
                                              ~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/webdataset/webdataset.py", line 32, in _get_pipeline_from_tar
                  for filename, f in tar_iterator:
                                     ^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/utils/track.py", line 49, in __iter__
                  for x in self.generator(*self.args):
                           ~~~~~~~~~~~~~~^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/utils/file_utils.py", line 1405, in _iter_from_urlpath
                  with xopen(urlpath, "rb", download_config=download_config, block_size=0) as f:
                       ~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/utils/file_utils.py", line 982, in xopen
                  file_obj = fs.open(paths[0], mode)
                File "<string>", line 3, in open
                File "/usr/local/lib/python3.14/unittest/mock.py", line 1176, in __call__
                  return self._mock_call(*args, **kwargs)
                         ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/unittest/mock.py", line 1180, in _mock_call
                  return self._execute_mock_call(*args, **kwargs)
                         ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/unittest/mock.py", line 1247, in _execute_mock_call
                  result = effect(*args, **kwargs)
                File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 786, in wrapped
                  tracker.files[urlpath] = {"read": 0, "size": int(f.size)}
                                                               ~~~^^^^^^^^
              TypeError: int() argument must be a string, a bytes-like object or a real number, not 'NoneType'
              
              The above exception was the direct cause of the following exception:
              
              Traceback (most recent call last):
                File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1369, in compute_config_parquet_and_info_response
                  parquet_operations, partial, estimated_dataset_info = stream_convert_to_parquet(
                                                                        ~~~~~~~~~~~~~~~~~~~~~~~~~^
                      builder, max_dataset_size_bytes=max_dataset_size_bytes
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                  )
                  ^
                File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 948, in stream_convert_to_parquet
                  builder._prepare_split(split_generator=splits_generators[split], file_format="parquet")
                  ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1393, in _prepare_split
                  for job_id, done, content in self._prepare_split_single(
                                               ~~~~~~~~~~~~~~~~~~~~~~~~~~^
                      gen_kwargs=gen_kwargs, job_id=job_id, **_prepare_split_args
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                  ):
                  ^
                File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1571, in _prepare_split_single
                  raise DatasetGenerationError("An error occurred while generating the dataset") from e
              datasets.exceptions.DatasetGenerationError: An error occurred while generating the dataset

Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.

pkl
unknown
__key__
string
__url__
string
"gASV4VQAAAAAAACMEHNjTVBSQWZvcmdlLmNvcmWUjBBleHBlcmltZW50X21vZGVslJOUKYGUfZQojAVzcGxpdJSMCWNlbGxfdHl(...TRUNCATED)
cohen_cm_nb_phantom_20260401/by_cell_type
"hf://datasets/saarantras1/scMPRAforge_models@433c15929292992db3a761bc8f190298a853f677/orthos/cohen_(...TRUNCATED)
"gASVLCIAAAAAAAB9lCiMEm5iX3JlZ3Jlc3Nvcl9uYW1lc5RdlCiMCUludGVyY2VwdJSMP0MoY3JlX2lkLCBjb250ci50cmVhdG1(...TRUNCATED)
cohen_cm_nb_phantom_20260401/by_cell_type_design/0
"hf://datasets/saarantras1/scMPRAforge_models@433c15929292992db3a761bc8f190298a853f677/orthos/cohen_(...TRUNCATED)
"gASVLCIAAAAAAAB9lCiMEm5iX3JlZ3Jlc3Nvcl9uYW1lc5RdlCiMCUludGVyY2VwdJSMP0MoY3JlX2lkLCBjb250ci50cmVhdG1(...TRUNCATED)
cohen_cm_nb_phantom_20260401/by_cell_type_design/1
"hf://datasets/saarantras1/scMPRAforge_models@433c15929292992db3a761bc8f190298a853f677/orthos/cohen_(...TRUNCATED)
"gASVLCIAAAAAAAB9lCiMEm5iX3JlZ3Jlc3Nvcl9uYW1lc5RdlCiMCUludGVyY2VwdJSMP0MoY3JlX2lkLCBjb250ci50cmVhdG1(...TRUNCATED)
cohen_cm_nb_phantom_20260401/by_cell_type_design/2
"hf://datasets/saarantras1/scMPRAforge_models@433c15929292992db3a761bc8f190298a853f677/orthos/cohen_(...TRUNCATED)
"gASVLCIAAAAAAAB9lCiMEm5iX3JlZ3Jlc3Nvcl9uYW1lc5RdlCiMCUludGVyY2VwdJSMP0MoY3JlX2lkLCBjb250ci50cmVhdG1(...TRUNCATED)
cohen_cm_nb_phantom_20260401/by_cell_type_design/3
"hf://datasets/saarantras1/scMPRAforge_models@433c15929292992db3a761bc8f190298a853f677/orthos/cohen_(...TRUNCATED)
null
cohen_cm_nb_phantom_20260401/by_cell_type_design/_keys
"hf://datasets/saarantras1/scMPRAforge_models@433c15929292992db3a761bc8f190298a853f677/orthos/cohen_(...TRUNCATED)
"gASVYFAAAAAAAACMEHNjTVBSQWZvcmdlLmNvcmWUjApwYXJhbWV0ZXJzlJOUKYGUfZQojAJuYpR9lCiMCXJlZmVyZW5jZZSMBnB(...TRUNCATED)
cohen_cm_nb_phantom_20260401/by_cell_type_parameters
"hf://datasets/saarantras1/scMPRAforge_models@433c15929292992db3a761bc8f190298a853f677/orthos/cohen_(...TRUNCATED)
"gASV1QUBAAAAAACMEHNjTVBSQWZvcmdlLmNvcmWUjBBleHBlcmltZW50X21vZGVslJOUKYGUfZQojAVzcGxpdJSMBmNyZV9pZJS(...TRUNCATED)
cohen_cm_nb_phantom_20260401/by_cre
"hf://datasets/saarantras1/scMPRAforge_models@433c15929292992db3a761bc8f190298a853f677/orthos/cohen_(...TRUNCATED)
"gASVxQEAAAAAAAB9lCiMEm5iX3JlZ3Jlc3Nvcl9uYW1lc5RdlCiMCUludGVyY2VwdJSMOkMoY2VsbF90eXBlLCBjb250ci50cmV(...TRUNCATED)
cohen_cm_nb_phantom_20260401/by_cre_design/0
"hf://datasets/saarantras1/scMPRAforge_models@433c15929292992db3a761bc8f190298a853f677/orthos/cohen_(...TRUNCATED)
"gASVxQEAAAAAAAB9lCiMEm5iX3JlZ3Jlc3Nvcl9uYW1lc5RdlCiMCUludGVyY2VwdJSMOkMoY2VsbF90eXBlLCBjb250ci50cmV(...TRUNCATED)
cohen_cm_nb_phantom_20260401/by_cre_design/1
"hf://datasets/saarantras1/scMPRAforge_models@433c15929292992db3a761bc8f190298a853f677/orthos/cohen_(...TRUNCATED)
End of preview.

scMPRA stratified negative binomial fits

Fitted parameters for every stratified negative binomial (NB) and zero-inflated negative binomial (ZINB) model reported in Modeling, calibration, and power analysis of single-cell massively parallel reporter assays. There are fifteen fits over three published scMPRA datasets: three canonical (one per dataset, the model the paper's analyses use) and twelve counterfactuals kept so the model-selection comparisons can be reproduced.

The parameter tables are plain parquet and need nothing but pandas. The orthos are the complete fitted objects, loadable with scMPRAforge. Bounds objects derived from these fits are included with scMPRAforge.

Files

file rows description
fitted_means.parquet 45,296 fitted mean and dispersion, one row per level
zero_inflation.parquet 6,016 fitted zero inflation, ZINB fits only
fits.csv 15 one row per fit: dataset, model family, zero handling, canonical flag
export_fits.py the script that produced all three
orthos/<fit>.tar.gz 15 the complete fitted objects, one archive per fit

Schema

fitted_means.parquet

  • fit — fit name, joins to fits.csv
  • stratified_by — cell_type or cre
  • stratum — the level of the stratifying axis this model was fit on
  • level_axis / level — what the mean is indexed by, and which one
  • mu — fitted mean
  • theta — NB dispersion for this stratum

zero_inflation.parquet is the same minus theta, with zi in place of mu, and level_axis always rep_id.

Datasets

dataset study assay
shendure Lalanne et al. 2024, Nat Methods 21:983, 10.1038/s41592-024-02260-3 scQers, developmental CREs in mouse embryoid bodies
cohen Zhao et al. 2023, Nat Genet 55:346, 10.1038/s41588-022-01278-7 scMPRA, promoter variants in live mouse retinas
seelig Yin et al. 2025, Cell Systems 16:101302, 10.1016/j.cels.2025.101302 scMPRA of designed enhancers in HepG2/K562

The lab names are kept as identifiers so these join to the analysis code. Make sure you cite the papers above in downstream analysis.

Loading

import pandas as pd

fits  = pd.read_csv("fits.csv")
means = pd.read_parquet("fitted_means.parquet")

canonical = set(fits.loc[fits.canonical, "fit"])
mu = means[means.fit.isin(canonical) & (means.stratified_by == "cell_type")]

Orthos

Each ortho holds its training data in training_data.scmpra/: the count table post filtering and negative-control pooling. ortho.load reads it from there, so an ortho loads and computes from any working directory.

Each fit is one archive, so download only the ones you need:

import tarfile
from huggingface_hub import hf_hub_download
from distributed import Client, LocalCluster
from scMPRAforge.core import ortho

name = "seelig_cm_moib_nb_phantom"
archive = hf_hub_download("saarantras1/scMPRAforge_models", f"orthos/{name}.tar.gz",
                          repo_type="dataset")
tarfile.open(archive).extractall("orthos", filter="data")

client = Client(LocalCluster())
o = ortho.load(client, "orthos", name)

This needs scMPRAforge 0.1.0.dev1 or later (pip install "scMPRAforge>=0.1.0.dev1").

Licence and source data

files licence reason
orthos/seelig_*.tar.gz CC-BY-NC-4.0 contains Yin et al.'s count table, published under CC-BY-NC-4.0
everything else CC-BY-4.0 our fits, and the shendure and cohen count tables, whose sources are CC-BY-4.0

The count tables are processed from the depositing studies' public data:

dataset deposit source terms
shendure GEO GSE217686 paper is CC-BY-4.0
cohen GEO GSE188639, Zenodo 14907846 Zenodo deposit is CC-BY-4.0
seelig GEO GSE269037 (scMPRA), GSE269036 (bulk) paper is CC-BY-NC-4.0

Citation

TODO on acceptance.

Downloads last month
56