Skip to content

Commit 7cdf361

Browse files
committed
📌 v0.2.1 release
1 parent 53d6b29 commit 7cdf361

31 files changed

+3497
-2185
lines changed

.gitattributes

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
# ignore the special file
2-
**.ipynb linguist-vendored
2+
**.ipynb linguist-vendored
3+
**.R linguist-vendored
4+
** .Rprofile linguist-vendored

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ jobs:
3030
sudo apt install -y libxml2-utils pandoc
3131
curl -sSL https://install.python-poetry.org | python3 -
3232
pip install --upgrade pip
33-
pip install -e ".[torch]"
34-
pip install -e ".[pyg,docs,dev]"
33+
pip install -e ".[docs, dev]"
34+
pip install pyg_lib torch_scatter torch_sparse torch_cluster torch_spline_conv -f https://data.pyg.org/whl/torch-2.0.0+cpu.html
3535
3636
- name: Build documentation
3737
run: |

.github/workflows/release.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,9 @@ jobs:
2121
run: |
2222
curl -sSL https://install.python-poetry.org | python3 -
2323
pip install --upgrade pip
24-
pip install -e ".[torch]"
25-
pip install -e ".[pyg,docs,dev]"
24+
pip install -e ".[docs, dev]"
25+
pip install pyg_lib torch_scatter torch_sparse torch_cluster torch_spline_conv -f https://data.pyg.org/whl/torch-2.0.0+cpu.html
26+
2627
2728
- name: Build package
2829
run: |

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@
1818
*.arrow
1919
*Weights
2020
*.sqlite
21+
*.svg
22+
*.gz
23+
*.whl
2124

2225
# folder
2326
**/conda/

README.md

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -46,36 +46,33 @@ docker pull huhansan666666/slat:latest
4646
> **Note**
4747
> Installing `scSLAT` within a new [conda environment](https://conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html) is recommended.
4848
49-
First, we create a clean environment and install `scSLAT` from PyPI. We need install dependency `torch` before install `pyg`.
49+
First, we create a clean environment and install `scSLAT` from PyPI. Then we also need install dependencies for `pyg` manually. We default install with CUDA 11.7. Please refer [here](https://pytorch-geometric.readthedocs.io/en/latest/install/installation.html#quick-start) for CPU version or different CUDA versions.
5050

5151
> **Warning**
5252
> old NVIDIA driver may raise error, please update NVIDIA driver to the latest version.
5353
5454
```bash
5555
conda create -n scSLAT python=3.8 -y && conda activate scSLAT
56-
pip install "scSLAT[torch]"
57-
pip install "scSLAT[pyg]"
56+
pip install scSLAT
57+
pip install pyg_lib torch_scatter torch_sparse torch_cluster torch_spline_conv -f https://data.pyg.org/whl/torch-2.0.0+cu117.html
5858
```
5959

60-
> **Note**
61-
> Some dependencies such as `torch-scatter` need to compile from source, which may take a long time. Please refer our solution to accelerate the install [here](https://slat.readthedocs.io/en/latest/install.html)
62-
6360
### Development version
6461
For development purpose, clone this repo and install:
6562

6663
```bash
6764
git clone [email protected]:gao-lab/SLAT.git
6865
cd SLAT
69-
pip install -e ".[torch]"
70-
pip install -e ".[pyg,dev,doc]"
66+
pip install -e ".[dev,docs]"
67+
pip install pyg_lib torch_scatter torch_sparse torch_cluster torch_spline_conv -f https://data.pyg.org/whl/torch-2.0.0+cu117.html
7168
```
7269

7370
### Conda (Ongoing)
7471
We plan to provide a conda package of `scSLAT` in the near future.
7572

7673

7774
## Reproduce manuscript results
78-
1. Please follow the [`env/README.md`](env/README.md) to install all dependencies. Please checkout the repository to v0.2.0 before install `scSLAT`:
79-
2. Download and pre-process data follow the [`data/README.md`](data/README.md)
75+
1. Please follow the [`env/README.md`](env/README.md) to install all dependencies. Please checkout the repository to v0.2.1 before install `scSLAT`.
76+
2. Download and pre-process data follow the [`data/README.md`](data/README.md).
8077
3. Whole benchmark and evaluation procedure can be found in [`/benchmark`](benchmark/README.md) and [`/evaluation`](evaluation/README.md), respectively.
8178
4. Every case study is recorded in the [`/case`](case/README.md) directory in the form of jupyter notebook.

benchmark/.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@ results*/
44
split/
55
multi/
66
results_bak/
7-
figures/
7+
figures/
8+
hetero/

benchmark/analysis/3d_analysis.ipynb

Lines changed: 157 additions & 16 deletions
Large diffs are not rendered by default.

benchmark/analysis/benchmark_analysis.ipynb

Lines changed: 23 additions & 23 deletions
Large diffs are not rendered by default.

benchmark/analysis/celltype_region_analysis.ipynb

Lines changed: 262 additions & 7 deletions
Large diffs are not rendered by default.

benchmark/analysis/neighbor_celltype.ipynb

Lines changed: 61 additions & 46 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)