Skip to main content

icat

Identifying Cell-states Across Treatments

ICAT is a tool developed to better identify cell states in scRNAseq experiments where perturbations or some other biologic heterogeneity is present, such as gene knock-outs.

The method works by first identifying a set of conrol-defined cell states by performing unsupervised clustering. These identified cell states are then fed into a sparse gene weighting algorithm, Neighborhood Component Feature Selection (NCFS), to highly weight the most predictive genes, while also removing variance from non-explanatory genes. We then transform the data matrix using this weight vector, and perform semi-supervised clustering such that the originally identified control labels remain constant, but cells from experimental conditions

Installation

ICAT can be installed using pip and can be installed using the following command:

pip install icat-sc

How to use

ICAT makes heavy use of the excellent scanpy library along with the associated AnnData data structure.

An example code block walks through running icat on a simulated dataset. The final clustering is stored in the sslouvain column of the returned AnnData object.

    from icat import simulate
    from icat import models
    import scanpy as sc
    import numpy as np
    data_model = simulate.SingleCellDataset(
        populations=2,
        genes=1000,
        dispersion=np.random.choice([1, 2, 3], 1000)
    )
    controls = data_model.simulate()
    controls.obs['treatment'] = 'control'
    perturbed = simulate.perturb(controls)
    perturbed.obs['treatment'] = 'perturbed'
    adata = controls.concatenate([perturbed])
    sc.pp.log1p(adata)

visualizing dataset

    # specify model parameters -- see documentation for more information
    model = models.icat(
        ctrl_value="control",
        ncfs_kws={'reg': 1, 'sigma': 3},
        neighbor_kws={'n_neighbors': 15}, 
        cluster_kws={'resolution': 0.75},
    )
    # cluster cells by providing treatment information
    out = model.cluster(adata, adata.obs['treatment'])
    print(out.obs['sslouvain'].unique())

visualizing results

Metadata

Release files for icat-sc 0.1.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for icat-sc 0.1.4
File Size Uploaded Provenance Actions
icat-sc-0.1.4.tar.gz 22.8 kB Without provenance Details for icat-sc-0.1.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for icat-sc 0.1.4
File Interpreter ABI Platform Actions
icat_sc-0.1.4-py3-none-any.whl Python 3 none any Details for icat_sc-0.1.4-py3-none-any.whl

Total release size: 46.3 kB

Release files / icat-sc-0.1.4.tar.gz

Download URL icat-sc-0.1.4.tar.gz
Size 22.8 kB
Tags Source
SHA-256 checksum
How to use checksums
6cd2931858304aa2602ad750bcd238c8cd953ae9768863edb6f2ec71ab1f0aee
BLAKE2b-256 checksum
How to use checksums
23941bbb3c3c36c778101c0e57e8973c2cf84ad6f3c5366e715a5554a2a918fe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.8.8

Release files / icat_sc-0.1.4-py3-none-any.whl

Download URL icat_sc-0.1.4-py3-none-any.whl
Size 23.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
98edd5f4c747d6945f557b2ef731fe386983cfd6b927690ce7c858b973b337d2
BLAKE2b-256 checksum
How to use checksums
7acf82f7ad9f02115ddc0ddba752c74d53d4a416b904b62071cbde8e15122115
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.8.8

Security for icat-sc 0.1.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.4 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page