ExPert v0.1.0
Browse files- README.md +51 -0
- gene_embeddings.npz +3 -0
- model.pt +3 -0
README.md
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
library_name: expert-model
|
| 4 |
+
pipeline_tag: other
|
| 5 |
+
tags:
|
| 6 |
+
- single-cell
|
| 7 |
+
- perturb-seq
|
| 8 |
+
- scRNA-seq
|
| 9 |
+
- perturbation-prediction
|
| 10 |
+
- biology
|
| 11 |
+
---
|
| 12 |
+
|
| 13 |
+
# ExPert v0.1.0
|
| 14 |
+
|
| 15 |
+
ExPert reads a transcriptional response and tells you which genetic perturbations it resembles. This is the
|
| 16 |
+
production model from the paper. It was trained on 22 Perturb-seq datasets and has one prototype per perturbation in
|
| 17 |
+
a shared latent space: 8,964 learned from the screens, the rest of its 19,895-gene vocabulary predicted from prior
|
| 18 |
+
knowledge. It scores single cells or pseudobulks from any human or mouse scRNA-seq query against those prototypes.
|
| 19 |
+
|
| 20 |
+
Code, installation and documentation: <https://github.com/GoyalLab/ExPert>
|
| 21 |
+
|
| 22 |
+
## Usage
|
| 23 |
+
|
| 24 |
+
```bash
|
| 25 |
+
pip install git+https://github.com/GoyalLab/ExPert.git huggingface_hub
|
| 26 |
+
```
|
| 27 |
+
|
| 28 |
+
```python
|
| 29 |
+
import scanpy as sc
|
| 30 |
+
from huggingface_hub import snapshot_download
|
| 31 |
+
from expert import ExPert
|
| 32 |
+
|
| 33 |
+
model = ExPert.load(snapshot_download("GoyalLab/ExPert", revision="v0.1.0"))
|
| 34 |
+
|
| 35 |
+
query = sc.read_h5ad("query.h5ad") # raw counts, gene symbols; obs['perturbation'] = 'control' for controls
|
| 36 |
+
out = model.predict(query)
|
| 37 |
+
out["soft_predictions"] # cells x perturbations
|
| 38 |
+
```
|
| 39 |
+
|
| 40 |
+
## Files
|
| 41 |
+
|
| 42 |
+
| file | contents |
|
| 43 |
+
|---|---|
|
| 44 |
+
| `model.pt` | weights, model configuration, gene and perturbation vocabularies, readout calibration |
|
| 45 |
+
| `gene_embeddings.npz` | text embeddings of the perturbation vocabulary (prototype prior for untrained genes) |
|
| 46 |
+
|
| 47 |
+
The training data can be rebuilt with [ExPert-data](https://github.com/GoyalLab/ExPert-data).
|
| 48 |
+
|
| 49 |
+
## Citation
|
| 50 |
+
|
| 51 |
+
_Preprint reference to be added._
|
gene_embeddings.npz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:39f10057a01946a5aa03e3f88f802f70794718f3ec48fe57a7a03660021643b4
|
| 3 |
+
size 326269185
|
model.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d873861d48cc445d4939fecd11dee3ed3ed2bf90a990aeef251057723fcb015e
|
| 3 |
+
size 2003686536
|