Skip to content

Commit 91ee755

Browse files
Enhance CyteType usage in README example
Updated the CyteType initialization to include rank_key and n_top_genes parameters.
1 parent 4cdf613 commit 91ee755

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,9 @@ pip install cytetype
5151
import scanpy as sc
5252
from cytetype import CyteType
5353

54-
# Assumes preprocessed AnnData with clusters and marker genes
55-
annotator = CyteType(adata, group_key='clusters')
54+
# Assumes preprocessed AnnData with clusters and marker genes for "adata.obs.clusters")
55+
group_key = 'clusters'
56+
annotator = CyteType(adata, group_key=group_key, rank_key='rank_genes_' + group_key, n_top_genes=100)
5657
adata = annotator.run(study_context="Human PBMC from healthy donor")
5758
sc.pl.umap(adata, color='cytetype_annotation_clusters')
5859
```

0 commit comments

Comments
 (0)