Single-cell language modeling
This package contains routines and definitions for pre-training single-cell (transcriptomic) language models.
Package features:
- Memory-efficient scRNA-seq dataloading from
h5torch-compatible HDF5 files. yaml-configurable language model training scripts.- Modular and extendable data preprocessing pipelines.
- A diverse set of downstream tasks to evaluate scLM performance.
- Full reproducibility instructions of our study results via bento-sc-reproducibility.
Install
bento-sc is distributed on PyPI.
pip install bento-sc
Note: The package has been tested with torch==2.2.2 and pytorch-lightning==2.2.5. If you encounter errors with bento-sc using more recent version of these two packages, consider downgrading.
You may need to install PyTorch before running this command in order to ensure the right CUDA kernels for your system are installed.
Package usage and structure
Please refer to our documentation page.
Academic reproducibility
All config files and scripts that were used to pre-train models and fine-tune them towards downstream tasks are included in a separate GitHub repository: bento-sc-reproducibility.
In addition, all scripts to reproduce the "baselines" in our study are located in the bento-sc-reproducibility repository.
Citation
:eyes: :eyes: :eyes:
Metadata
Release files for bento-sc 0.0.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| bento_sc-0.0.8.tar.gz | 10.7 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| bento_sc-0.0.8-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 21.5 MB
Release files / bento_sc-0.0.8.tar.gz
| Download URL | bento_sc-0.0.8.tar.gz |
|---|---|
| Size | 10.7 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cdbca503297b38dd7959bbd6905d450d42dc8519c8d78725634e522da0fb52ed
|
|
BLAKE2b-256 checksum How to use checksums |
e56a29b149cb48d404651f0371ccf8b9f5e2fda4dbd16747bf9421bd2d4b5c93
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Release files / bento_sc-0.0.8-py3-none-any.whl
| Download URL | bento_sc-0.0.8-py3-none-any.whl |
|---|---|
| Size | 10.8 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b3591a244df3fa0cabe3cd4c50a8dfaa5b01c4a6cb000dc3a675198ddd354716
|
|
BLAKE2b-256 checksum How to use checksums |
bab5f3f7e3c48a2eebb24c26e6abfec0d5171608557207d33678cf7f433eb303
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|