Skip to main content

Cluster Alignment Tool

Project description

Cluster Alignment Tool (CAT)

Install with pip

pip install cat-python

Install from source

git clone https://github.com/brickmanlab/CAT.git && cd CAT
conda create --name cat python=3.7
pip install -e .

How to run

$ catcli \
    --ds1 ds1.h5ad \
    --ds1_name DS1 \
    --ds1_cluster seurat_clusters \
    --ds2 ds2.h5ad \
    --ds2_name DS2 \
    --ds2_cluster seurat_clusters \
    --output ./results/ds1-vs-ds2

# generate sankey plot
$ Rscript ./CAT/scripts/sankey.R \
  --excel ./results/ds1-vs-ds2/ds1_ds2_euclidean.xlsx \
  --output ./results/ds1-vs-ds2/

Help

$ conda activate cat
$ catcli --help
usage: catcli [-h] [--ds1 DS1] [--ds1_name DS1_NAME]
              [--ds1_cluster DS1_CLUSTER] [--ds1_genes DS1_GENES] [--ds2 DS2]
              [--ds2_name DS2_NAME] [--ds2_cluster DS2_CLUSTER]
              [--ds2_genes DS2_GENES] [--features FEATURES] [--output OUTPUT]
              [--distance DISTANCE] [--sigma SIGMA] [--n_iter N_ITER]
              [--format {excel,html}] [--verbose] [--version]

Cluster Alignment Tool (CAT)

optional arguments:
  -h, --help            show this help message and exit
  --ds1 DS1             Processed dataset (h5/h5ad)
  --ds1_name DS1_NAME   Dataset name
  --ds1_cluster DS1_CLUSTER
                        Column name for comparison
  --ds1_genes DS1_GENES
                        Gene column, using `index` as default
  --ds2 DS2             Processed dataset (h5/h5ad)
  --ds2_name DS2_NAME   Dataset name
  --ds2_cluster DS2_CLUSTER
                        Column name for comparison
  --ds2_genes DS2_GENES
                        Gene column, using `index` as default
  --features FEATURES   File containing list of genes on new lines
  --output OUTPUT       Output location
  --distance DISTANCE   Distance measurement
  --sigma SIGMA         Sigma cutoff (1.6 => p-value: 0.05)
  --n_iter N_ITER       Number of bootstraps, default 1,000
  --format {excel,html}
                        Report output format
  --verbose             Verbose mode
  --version             show program's version number and exit

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cat-python-1.0.tar.gz (8.3 kB view details)

Uploaded Source

Built Distribution

cat_python-1.0-py3-none-any.whl (10.2 kB view details)

Uploaded Python 3

File details

Details for the file cat-python-1.0.tar.gz.

File metadata

  • Download URL: cat-python-1.0.tar.gz
  • Upload date:
  • Size: 8.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.7.12

File hashes

Hashes for cat-python-1.0.tar.gz
Algorithm Hash digest
SHA256 e70cb0eba3b4310dcf37e9c0ad161243e328bbaee7cbab9692291ca927f26645
MD5 01fd4b036b7079bfa5631cceaaf50944
BLAKE2b-256 60f6912f35d77bcd516cbb3495bebf4ba95f6ea98f856a63f18abbca48ea9e10

See more details on using hashes here.

File details

Details for the file cat_python-1.0-py3-none-any.whl.

File metadata

  • Download URL: cat_python-1.0-py3-none-any.whl
  • Upload date:
  • Size: 10.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.7.12

File hashes

Hashes for cat_python-1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cfdf2d0b9e154d566d7dd9be8e2b38c61dd1ea254e7088c83d92c2ecd44f858d
MD5 9663815cdcf5680215a1f5c930175fe2
BLAKE2b-256 7d3e9e703c9cecc8a13ba67e6263ab09ae507d1913efd8c6dcad78d11e05f282

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page