Instructions to use mineself2016/GeneMamba with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use mineself2016/GeneMamba with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="mineself2016/GeneMamba", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("mineself2016/GeneMamba", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Remove stale path: examples/downstream/README.md
Browse files
examples/downstream/README.md
DELETED
|
@@ -1,35 +0,0 @@
|
|
| 1 |
-
# Downstream Examples
|
| 2 |
-
|
| 3 |
-
This folder now contains both **ready-to-run** examples and **legacy scripts** from the original GeneMamba project.
|
| 4 |
-
|
| 5 |
-
## Ready-to-run scripts
|
| 6 |
-
|
| 7 |
-
- `10_finetune_classification.py`
|
| 8 |
-
Fine-tune `AutoModelForSequenceClassification` for cell-type annotation.
|
| 9 |
-
|
| 10 |
-
- `11_zero_shot_logreg.py`
|
| 11 |
-
Freeze GeneMamba, extract `pooled_embedding`, train LogisticRegression on train split, evaluate on test split.
|
| 12 |
-
|
| 13 |
-
- `12_batch_integration_eval.py`
|
| 14 |
-
Batch integration proxy evaluation using silhouette score by `obs['batch']`.
|
| 15 |
-
|
| 16 |
-
## Reference training scripts
|
| 17 |
-
|
| 18 |
-
- `20_continue_pretraining_reference.py`
|
| 19 |
-
- `21_pretrain_from_scratch_reference.py`
|
| 20 |
-
|
| 21 |
-
## Legacy scripts from original repo
|
| 22 |
-
|
| 23 |
-
- `legacy_from_gene_mamba/mamba2_classification_finetune_with_label.py`
|
| 24 |
-
- `legacy_from_gene_mamba/mamba2_classification_finetune_without_label.py`
|
| 25 |
-
- `legacy_from_gene_mamba/mamba2_classification_finetune_without_label_zero_shot.py`
|
| 26 |
-
|
| 27 |
-
## Required h5ad conventions
|
| 28 |
-
|
| 29 |
-
For downstream compatibility, standardize columns in `adata.obs`:
|
| 30 |
-
|
| 31 |
-
- `celltype` for label
|
| 32 |
-
- `batch` for batch id
|
| 33 |
-
- `partition` in `{train, test}` for train/test split
|
| 34 |
-
|
| 35 |
-
This matches conventions described in the original `dataset/downstream/README.md`.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|