Cellarium Cell Annotation Service client tool
Project description
Cellarium Cell Annotation Service (CAS) Client
This codebase contains the Python client library for using Cellarium Cell Annotation Service (CAS).
Installation
$ pip install cellarium-cas
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,
api_url="<optional url to connect to a non-standard CAS server>"
)
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)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
cellarium-cas-1.5.1.tar.gz
(159.7 kB
view hashes)
Built Distribution
cellarium_cas-1.5.1-py3-none-any.whl
(169.2 kB
view hashes)
Close
Hashes for cellarium_cas-1.5.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 64085867bbecaa767d041bd73d41cc9cb664c1ff611cd911e9fdb1f2104f21f7 |
|
MD5 | 707ec677074bc68e2eb492405ea78a20 |
|
BLAKE2b-256 | f5b48e8c9405c45f3e863d8306a3d5a41a97a26e1c14c0b47f4236222acc3744 |