https://github.com/chenliu-1996/spatial-hypergraph
Science Score: 13.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
○.zenodo.json file
-
○DOI references
-
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (7.2%) to scientific vocabulary
Repository
Basic Info
- Host: GitHub
- Owner: ChenLiu-1996
- Language: Python
- Default Branch: main
- Size: 17.2 MB
Statistics
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
- Releases: 0
Metadata Files
Readme.md
Reproducing the results
- Preprocess the data
1.1 Yang-Hartwich data.
1.1.1 If using all the genes.
cd src/preprocessing
python preprocess_placenta_patchify_all_genes.py
1.1.2 If using a selected subset of genes of interest.
cd src/preprocessing
python preprocess_placenta_patchify_selected_genes.py
1.2 MIBI data.
1.2.1 If using all genes.
cd src/preprocessing
python preprocess_MIBI_patchify_all_genes.py
- Train the hypergraph wavelet model.
2.1 If using all the genes.
cd src python train.py --data-folder '$ROOT/data/MIBI/patchified_all_genes/'
2.2 If using a selected subset of genes of interest.
cd src
python train.py --data-folder '$ROOT/data/MIBI/patchified_selected_genes/'
Dependencies
We developed the codebase in a miniconda environment. How we created the conda environment: ```
Optional: Update to libmamba solver.
conda update -n base conda conda install -n base conda-libmamba-solver conda config --set solver libmamba
conda create --name scdata pytorch torchvision torchaudio pytorch-cuda=12.1 -c pytorch -c nvidia -c anaconda -c conda-forge -y conda activate scdata conda install scikit-learn scikit-image pandas matplotlib seaborn tqdm -c pytorch -c anaconda -c conda-forge -y python -m pip install opencv-python python -m pip install phate python -m pip install meld python -m pip install anndata torch_geometric einops geovoronoi vendi-score python -m pip install numpy==1.26 python -m pip install pyarrow python -m pip install transformers python -m pip install dhg==0.9.4 --no-deps python -m pip install optuna torchmetrics scanpy python -m pip install torch-scatter -f https://data.pyg.org/whl/torch-2.5.0+cu121.html python -m pip install git+https://huggingface.co/ctheodoris/Geneformer
export PROJDIR=/usr/local export PROJLIBDIR=/usr/local/lib/ export PROJ_INCDIR=/usr/local/includes/ brew install proj conda install -c conda-forge pyproj python -m pip install squidpy
```
Debug
If you encounter undefined symbol: cublasLtHSHMatmulAlgoInit, version libcublasLt.so.11, can try the following.
export LD_LIBRARY_PATH=/home/cl2482/.conda/envs/scdata/lib/python3.10/site-packages/nvidia/cublas/lib:$LD_LIBRARY_PATH
NOTE: replace /home/cl2482/.conda/envs/scdata/lib/python3.10/ with your environment parent directory.
Owner
- Name: Chen Liu
- Login: ChenLiu-1996
- Kind: user
- Location: New Haven
- Company: Yale University
- Website: https://chenliu-1996.github.io/
- Twitter: ChenLiu_1996
- Repositories: 5
- Profile: https://github.com/ChenLiu-1996
CS PhD student at @KrishnaswamyLab, @YaleUniversity. Reviewing Committee member at NeurIPS, ICLR, ICML.
GitHub Events
Total
- Watch event: 1
- Member event: 1
- Push event: 26
- Public event: 1
- Create event: 1
Last Year
- Watch event: 1
- Member event: 1
- Push event: 26
- Public event: 1
- Create event: 1