Skip to content

Commit 1ffda09

Browse files
docs improvements (mainly proteins tuto)
1 parent ce99ce6 commit 1ffda09

File tree

8 files changed

+436
-16
lines changed

8 files changed

+436
-16
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,14 @@
33
### Added
44
- `load_dataset`: add `custom_filter` and `dry_run` arguments
55
- added `min_prototypes_ratio` argument in `fine_tune` to run `init_slide_queue`
6+
- Added tutorials for proteins data + minor docs improvements
67

78
### Fixed
89
- Ensure reset clustering if multiple zero-shot (#9)
910

1011
### Changed
1112
- Removed the docs formatting (better for autocompletion)
13+
- Reorder parameters in Novae `__init__` (sorted by importance)
1214

1315
## [0.2.1] - 2024-12-04
1416

docs/api/metrics.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,3 @@
33
::: novae.monitor.fide_score
44

55
::: novae.monitor.mean_fide_score
6-
7-
::: novae.monitor.svg_score
8-
9-
::: novae.monitor.mean_svg_score

docs/api/utils.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
::: novae.utils.spatial_neighbors
22

3+
::: novae.utils.quantile_scaling
4+
35
::: novae.utils.prepare_adatas
46

57
::: novae.utils.load_dataset

docs/faq.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,14 @@ from novae import Novae
2020
model = Novae.from_pretrained("MICS-Lab/novae-human-0") # or any valid model name
2121
```
2222

23+
### How to avoid overcorrecting?
24+
25+
By default, Novae corrects the batch-effect to get shared spatial domains across slides.
26+
The batch information is used only during training (`fit` or `fine_tune`), which should prevent Novae from overcorrecting in `zero_shot` mode.
27+
28+
If not using the `zero_shot` mode, you can provide the `min_prototypes_ratio` parameter to control batch effect correction: either (i) in the `fine_tune` method itself, or (ii) during the model initialization (if retraining a model from scratch).
29+
30+
For instance, if `min_prototypes_ratio=0.5`, Novae expects each slide to contain at least 50% of the prototypes (each prototype can be interpreted as an "elementary spatial domain"). Therefore, the lower `min_prototypes_ratio`, the lower the batch-effect correction. Conversely, if `min_prototypes_ratio=1`, all prototypes are expected to be found in all slides (this doesn't mean the proportions will be the same overall slides, though).
2331

2432
### How do I save my own model?
2533

docs/tutorials/multi_tissue.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"cell_type": "markdown",
55
"metadata": {},
66
"source": [
7-
"# Multi-tissue or multi-condition mode\n",
7+
"# Multi-tissue/condition mode\n",
88
"Coming soon"
99
]
1010
},

docs/tutorials/proteins.ipynb

Lines changed: 420 additions & 8 deletions
Large diffs are not rendered by default.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"cell_type": "markdown",
55
"metadata": {},
66
"source": [
7-
"# Spot versus single-cell resolution\n",
7+
"# Spot/bin/single-cell resolutions\n",
88
"Coming soon"
99
]
1010
},

mkdocs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ nav:
1515
- Tutorials:
1616
- Main usage: tutorials/main_usage.ipynb
1717
- Different input modes: tutorials/input_modes.md
18-
- Spot vs single-cell resolution: tutorials/spot_vs_sc.ipynb
19-
- Multi tissue/condition mode: tutorials/multi_tissue.ipynb
2018
- Usage on proteins: tutorials/proteins.ipynb
19+
- Spot/bin/single-cell resolutions: tutorials/resolutions.ipynb
20+
- Multi tissue/condition mode: tutorials/multi_tissue.ipynb
2121
- API:
2222
- Novae model: api/Novae.md
2323
- Utils: api/utils.md

0 commit comments

Comments
 (0)