You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
14
14
15
15
## Key features
16
16
17
17
- Automatically annotate cells including type, state and confidence fields.
18
18
- Generate consistent annotations across samples of your study.
19
19
- Optionally infuse prior knowledge by providing information about your biological system.
20
20
- 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)).
22
22
23
23
## Installation
24
24
25
25
You need to have Python 3.10 or newer installed on your system.
26
26
If you don't have Python installed, we recommend installing [Mambaforge][].
27
27
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
@@ -37,6 +47,18 @@ After installation, head over to OpenAI to generate your [API key](https://help.
37
47
38
48
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.
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
+
40
62
## Credits
41
63
42
64
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