Skip to content

Commit 2dc8d43

Browse files
author
Lazareva
committed
documentation update
1 parent cf2ed8a commit 2dc8d43

File tree

3 files changed

+62
-10
lines changed

3 files changed

+62
-10
lines changed

.github/workflows/publish-to-pypi.yml

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
name: Publish Python Package
22

33
on:
4-
push:
5-
branches:
6-
- master # or your preferred branch
4+
release:
5+
types:
6+
- created # This workflow will run when a new release is created
77

88
jobs:
99
build:
@@ -26,10 +26,15 @@ jobs:
2626
run: |
2727
python setup.py sdist bdist_wheel
2828
29-
- name: Publish to PyPI
30-
env:
31-
TWINE_USERNAME: "__token__"
32-
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
33-
run: |
34-
python -m pip install --upgrade twine
35-
twine upload dist/*
29+
# - name: Publish to PyPI
30+
# env:
31+
# TWINE_USERNAME: "__token__"
32+
# TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
33+
# run: |
34+
# python -m pip install --upgrade twine
35+
# twine upload dist/*
36+
- name: Publish package to PyPI
37+
uses: pypa/gh-action-pypi-publish@v1.8.10
38+
with:
39+
user: __token__
40+
password: ${{ secrets.PYPI_API_TOKEN }}

docs/faq/index.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
2+
---
3+
layout: default
4+
title: FAQ
5+
nav_order: 4
6+
---
7+
8+
# FAQ
9+
- **Q:** What if I want to map only cell states, but not clones?
10+
- **A:** In therory, spaceTree can be used with any type of labels that can be transfered from scRNA-seq to spatial data. In practice, a way to achive that at the moment requirs a few modifications to the tutorial:
11+
12+
1) Currently the format of `data` object is fixed, but you can assign a dummy label to `clone` column in `adata.obs` by assigning roughlhly 50% of the cells to clone '0' and the rest to 'diploid'.
13+
14+
2) When you define the model, you need to set `map_enteties` to 'type' instead of 'both'. E.g.:
15+
```python
16+
model = GATLightningModule_sampler(data_param=data, weight_type=weight_type, map_enteties='type')
17+
```
18+
3) Instead of running `get_results_calibrated()`, you can use `get_results_type(pred, data, node_encoder_rev, node_encoder_ct, activation='softmax')` to get the results for cell types only.
19+
20+
- **Q:** What if I want to map only clones, but not cell types?
21+
22+
- **A:** In therory, spaceTree can be used with any type of labels that can be transfered from scRNA-seq to spatial data. In practice, a way to achive that at the moment requirs a few modifications to the tutorial:
23+
24+
1) Currently the format of `data` object is fixed, but you can assign a dummy label to 'cell_type' column in `adata_ref.obs` by assigning roughlhly 50% of the cells to dummy_cell_type1 and the rest to 'dummy_cell_type2' (or use any other names).
25+
26+
2) When you define the model, you need to set `map_enteties` to 'clone' instead of 'both'. E.g.:
27+
```python
28+
model = GATLightningModule_sampler(data_param=data, weight_clone=weight_clone, map_enteties='clone')
29+
```
30+
3) Instead of running `get_results_calibrated()`, you can use `get_results_clone(pred, data, node_encoder_rev, node_encoder_cl, activation='softmax')` to get the results for clones only.
31+
32+
- **Q:** What if I want to map a different type of labels, e.g. cell types and cell cycle phases?
33+
- **A:** In therory, spaceTree can be used with any type of labels that can be transfered from scRNA-seq to spatial data. In practice, due to due to the fixed format of clonal labels, you might have to represent cell cycle phases as clones: e.g. "diploid","0","1", etc.
34+
35+
- **Q:** What if I want to use more than 2 sets of labels?
36+
- **A:** Right now we do not support more than 2 sets of labels. However, if you feel confident in your programming skills, you can modify the code of model and the evaluation functions to support more than 2 sets of labels.
37+
38+

docs/index.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ Welcome to the official documentation for spaceTree! Here, you will find tutoria
1919
1. [Cell state and clone mapping to 10x Visium with SpaceTree](tutorials/cell-state-clone-mapping.md)
2020
2. [Cell state and clone mapping to 10x Xenium with SpaceTree](tutorials/cell-state-clone-mapping-xenium.md)
2121
3. [Visium HD data tips and tricks](tutorials/visium-hd.md)
22+
3. [FAQ](faq/index.md)
23+
4. [API Reference](api/index.md)
24+
5. [Citation](#citation)
2225

2326
## Installation <a name="installation"></a>
2427
### pytorch & pytorch geometric dependencies <a name="dependency"></a>
@@ -80,3 +83,9 @@ If you need help defining clones based on your own scRNA-seq data, you can use t
8083

8184
For the sake of the Visium and Xenium tutorials, we also show how we ran the clone inference based on inferCNVpy [here](https://github.com/PMBio/spaceTree/blob/master/notebooks/infercnv_run.ipynb)
8285

86+
## Citiation <a name="citation"></a>
87+
If you use spaceTree in your research, please cite our paper:
88+
89+
```
90+
To be added
91+
```

0 commit comments

Comments
 (0)