Skip to content

Python client libraries for Cellarium Cloud Cell Annotation Service (CAS).

License

Notifications You must be signed in to change notification settings

cellarium-ai/cellarium-cas

Repository files navigation

Cellarium Cell Annotation Service (CAS) Client

This codebase contains the Python client library for using Cellarium Cell Annotation Service (CAS).

Installation

$ pip install git+https://github.com/broadinstitute/cell-annotation-service-client.git

Usage

To use Cellarium CAS, create a client instance with your API token:

from cellarium.cas import CASClient

api_token = "a_very_long_string_with_some_symbols"
cas = CASClient(api_token=api_token)

Annotation

You can annotate 10x Cell Ranger h5 matrices from local disk:

response = cas.annotate_10x_h5_file(filepath="your_path_to_local_h5_file.h5")

or an anndata file from local disk:

response = cas.annotate_anndata_file(filepath="your_path_to_local_h5_file.h5ad")

or a previously loaded (unnormalized) anndata object:

import anndata


adata = anndata.read("you_anndata_file.h5ad")
response = cas.annotate_anndata(adata)

About

Python client libraries for Cellarium Cloud Cell Annotation Service (CAS).

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages