Views
No views yet

1# 1) Create and activate the conda environment
2conda env create -f environment.yml
3conda activate chromfound
4
5# 2) Install PyTorch (CUDA 12.1 wheels)
6pip install torch==2.2.2 torchvision==0.17.2 torchaudio==2.2.2 --index-url https://download.pytorch.org/whl/cu121
7
8# 3) Install core dependencies
9pip install mamba-ssm==2.2.4
10pip install flash-attn==2.7.2.post1 --no-build-isolation--pretrain_checkpoint_path src/checkpoints--pretrain_model_file model.pt--pretrain_config_file chromfd_pretrain.yaml1python -m src/cell_embedding \
2 --data_path sample_data/PBMC169K/atac_pbmc_benchmark_VIB_10xv1_1_qc_deepen_norm_log.h5ad \
3 --output_path sample_data/PBMC169K/cell_embedding \
4 --pretrain_checkpoint_path src/checkpoints \
5 --pretrain_model_file model.pt \
6 --pretrain_config_file chromfd_pretrain.yaml \
7 --batch_size 16 \
8 --cell_type_col celltypecell_embedding.ipynb.obs: Cell-level metadata; must include the cell type column used via --cell_type_col (e.g., celltype).var: Feature metadata containing chromosome position information
#Chromosome: Integer chromosome index as defined in src/conf/chromosome_vocab.yaml.hg38_Start: 0-based, inclusive genomic start coordinate (int) on the hg38 reference (base pairs).hg38_End: 0-based, exclusive genomic end coordinate (int) on the hg38 reference (base pairs).1@article{jiao2025chromfound,
2 title={ChromFound: Towards A Universal Foundation Model for Single-Cell Chromatin Accessibility Data},
3 author={Jiao, Yifeng and Liu, Yuchen and Zhang, Yu and Guo, Xin and Wu, Yushuai and Jiang, Chen and Li, Jiyang and Zhang, Hongwei and Han, Limei and Gao, Xin and Qi, yuan and Cheng, yuan},
4 journal={arXiv preprint arXiv:2505.12638},
5 year={2025}
6}