Skip to content

Commit 08aace2

Browse files
authored
Merge pull request #20 from quadbio/feature/docs
Update the README and the Changelog
2 parents 13f025a + d59edf8 commit 08aace2

File tree

2 files changed

+37
-3
lines changed

2 files changed

+37
-3
lines changed

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,18 @@ and this project adheres to [Semantic Versioning][]. Full commit history is avai
1111

1212
## Version 0.1
1313

14+
### 0.1.2 (2025-01-29)
15+
16+
#### Added
17+
18+
- Update the documentation, in particular the installation instructions.
19+
20+
### 0.1.1 (2025-01-29)
21+
22+
#### Added
23+
24+
- Initial push to PyPI
25+
1426
### 0.1.0 (2025-01-29)
1527

1628
Initial package release

README.md

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,22 +10,32 @@
1010
[badge-docs]: https://img.shields.io/readthedocs/cell-annotator
1111
[badge-pre-commit]: https://results.pre-commit.ci/badge/github/quadbio/cell-annotator/main.svg
1212

13-
A tool to annotate cell types based on marker genes using OpenAI models.
13+
A tool to annotate cell types in scRNA-seq data based on marker genes using OpenAI models.
1414

1515
## Key features
1616

1717
- Automatically annotate cells including type, state and confidence fields.
1818
- Generate consistent annotations across samples of your study.
1919
- Optionally infuse prior knowledge by providing information about your biological system.
2020
- Retrieve reliable results thanks to [OpenAI structured outputs](https://platform.openai.com/docs/guides/structured-outputs)
21-
- Use pre-integration cell type labels to either score your integration quality (e.g. [scIB metrics](https://scib-metrics.readthedocs.io/en/stable/)) or to guide your integration effort (e.g. [scPoli](https://docs.scarches.org/en/latest/), [scANVI](https://docs.scvi-tools.org/en/stable/api/reference/scvi.model.SCANVI.html))
21+
- Use this tool to quickly generate pre-integration cell type labels to either score your integration quality (e.g. [scIB metrics](https://scib-metrics.readthedocs.io/en/stable/)) or to guide your integration effort (e.g. [scPoli](https://docs.scarches.org/en/latest/), [scANVI](https://docs.scvi-tools.org/en/stable/api/reference/scvi.model.SCANVI.html)).
2222

2323
## Installation
2424

2525
You need to have Python 3.10 or newer installed on your system.
2626
If you don't have Python installed, we recommend installing [Mambaforge][].
2727

28-
1. Install the latest development version:
28+
### PyPI
29+
30+
Install by running:
31+
32+
```bash
33+
pip install cell-annotator
34+
```
35+
36+
### Development version
37+
38+
To install the latest development version from [GitHub](https://github.com/quadbio/cell-annotator), run
2939

3040
```bash
3141
pip install git+https://github.com/quadbio/cell-annotator.git@main
@@ -37,6 +47,18 @@ After installation, head over to OpenAI to generate your [API key](https://help.
3747

3848
Keep this key private and don't share it with anyone. `CellAnnotator` will try to read the key as an environmental variable - either expose it to the environment yourself, or store it as an `.env` file anywhere within the repository where you conduct your analysis and plan to run `CellAnnotator`. The package will then use [dotenv](https://pypi.org/project/python-dotenv/) to export the key from the `env` file as an environmental variable.
3949

50+
Here's the simplest way to annotate your data:
51+
52+
```python
53+
from cell_annotator import CellAnnotator
54+
55+
cell_ann = CellAnnotator(
56+
adata, species="human", tissue="heart", cluster_key="leiden", sample_key="samples",
57+
).annotate_clusters()
58+
```
59+
60+
By default, this will store annotations in `adata.obs['cell_type_predicted']`. Head over to our [tutorials](https://cell-annotator.readthedocs.io/en/latest/notebooks/tutorials/index.html) to see more advanced use cases, and learn how to adapt this to your own data. You can run `CellAnnotator` for just a single sample of data, or across multiple samples. In the latter case, it will attempt to harmonize annotations across samples.
61+
4062
## Credits
4163

4264
This tool was inspired by [Hou et al., Nature Methods 2024](https://www.nature.com/articles/s41592-024-02235-4) and [https://github.com/VPetukhov/GPTCellAnnotator](https://github.com/VPetukhov/GPTCellAnnotator).

0 commit comments

Comments
 (0)