Data-Criterion-model Associated Framework for full cycle of single-cell pertubation modeling!
git clone https://github.com/BGIResearch/DCAF.git
cd DCAF
conda create -n DCAF_data_cri python=3.9
pip install .
pip install -r requirements.txtconda activate DCAF_data_cripython run_recover.py -m demoDataset Tian, derived from paper is applied for this demonstration.
python run_recover.py -ctrl NPZ_FULL_PATH_OR_ITS_FILE_NAME_UNDER_/data
-case NPZ_FULL_PATH_OR_ITS_FILE_NAME_UNDER_/dataControl and case npz files shall be placed in the same path. They don't necessarily be of the same size.
python run_measure.py -m demoSynthetic dataset using our article (a link to be inserted) is applied for this demonstration.
python run_measure.py -ctrl NPZ_FULL_PATH_OR_ITS_FILE_NAME_UNDER_/data
-case NPZ_FULL_PATH_OR_ITS_FILE_NAME_UNDER_/data
-pred NPZ_FULL_PATH_OR_ITS_FILE_NAME_UNDER_/dataControl, case, and predicted npz files shall be placed in the same path. They shall be of the same size.
Nvidia GPU with at least 8 GB VRAM is required, 16 GB is recommended.
Multi-card acceleration is not supported.
Test performance:
| Item | Specification |
|---|---|
| CPU Architecture & Model | aarch64 (ARM), HiSilicon Kunpeng-920 |
| GPU | NVIDIA A100-PCIE-40GB ( |
| Batch size | 4 |
| No. of cells | 50 |
| Peak VRAM | 11 GB |
| Time | 9.2 s |
git clone https://github.com/BGIResearch/DCAF.git
cd DCAF
conda create -n DCAF_model python=3.9
conda activate DCAF_model
pip install -r requirements_model.txtconda activate DCAF_modelDownload fintuned models and dictionary, from drive to infer_by_ctrl/ours/data;
Use notebook for inference, at https://github.com/BGIResearch/DCAF/blob/main/infer_each_cell.ipynb