Skip to content

NygenAnalytics/CyteType

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

65 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CyteType

CI Status Python Version PyPI version License: CC BY-NC-SA 4.0 PyPI downloads DOI PyPI version


CyteType is a Python client for single‑cell RNA‑seq cluster annnotation using multi-agent workflow.

Try Colab Notebook or browse this example HTML report

Atlas scale examples: docs/examples.md


CyteType architecture

Installation

pip install cytetype

Quick Start

import anndata
import scanpy as sc
from cytetype import CyteType

# ------ Example Scanpy Pipeline ------
#  Skip this step if you already have clusters and marker genes in an AnnData object. 
adata = anndata.read_h5ad("path/to/your/data.h5ad")
sc.pp.normalize_total(adata, target_sum=1e4)
sc.pp.log1p(adata)
sc.pp.highly_variable_genes(adata, n_top_genes=1000)
sc.pp.pca(adata)
sc.pp.neighbors(adata)
sc.tl.leiden(adata, key_added="clusters")
sc.tl.rank_genes_groups(adata, groupby="clusters", method="t-test")
# ------ Example Scanpy Pipeline ------

# ------ CyteType ------
annotator = CyteType(adata, group_key="clusters")
adata = annotator.run(
    study_context="Brief study description (e.g., Human brain tissue ...)",
)

# View results
print(adata.obs.cytetype_annotation_clusters)
print(adata.obs.cytetype_cellOntologyTerm_clusters)

Documentation

License

Licensed under CC BY‑NC‑SA 4.0 — see LICENSE.md.

About

Multi-agent driven cell type annotation for single-cell RNA-Seq data stored in Anndata format

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages