Skip to main content

CarDEC

CarDEC (Count adapted regularized Deep Embedded Clustering) is a joint deep learning computational tool that is useful for analyses of single-cell RNA-seq data. CarDEC can be used to:

  1. Correct for batch effect in the full gene expression space, allowing the investigator to remove batch effect from downstream analyses like psuedotime analysis and coexpression analysis. Batch correction is also possible in a low-dimensional embedding space.
  2. Denoise gene expression.
  3. Cluster cells.

Reproducibility

We described and introduced CarDEC in our methodological paper. To find code to reproduce the results we generated in that paper, please visit this separate github repository, which provides all code (including that for other methods) necessary to reproduce our results.

Installation

Recomended installation procedure is as follows.

  1. Install Anaconda if you do not already have it.
  2. Create a conda environment, and then activate it as follows in terminal.
$ conda create -n cardecenv
$ conda activate cardecenv
  1. Install an appropriate version of python.
$ conda install python==3.7
  1. Install nb_conda_kernels so that you can change python kernels in jupyter notebook.
$ conda install nb_conda_kernels
  1. Finally, install CarDEC.
$ pip install CarDEC

Now, to use CarDEC, always make sure you activate the environment in terminal first ("conda activate cardecenv"). And then run jupyter notebook. When you create a notebook to run CarDEC, make sure the active kernel is switched to "cardecenv"

Usage

A tutorial jupyter notebook, together with a dataset, is publicly downloadable.

Software Requirements

  • Python >= 3.7
  • TensorFlow >= 2.0.1, <= 2.3.1
  • scikit-learn == 0.22.2.post1
  • scanpy == 1.5.1
  • louvain == 0.6.1
  • pandas == 1.0.1
  • scipy == 1.4.1

Trouble shooting

Installation on MacOS should be smooth. If installing on Windows Subsystem for Linux (WSL), the user must properly configure their g++ compiler to ensure that the louvain package can be built during installation. If the compiler is not properly configured, the user may encounter a following deprecation error similar to the following.

"DEPRECATION: Could not build wheels for louvain which do not use PEP 517. pip will fall back to legacy 'setup.py install' for these. pip 21.0 will remove support for this functionality. A possible replacement is to fix the wheel build issue reported above."

To fix this error, try to install the libxml2-dev package.

Metadata

Release files for cardec 1.0.3

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

Source distribution (sdist)

Source distribution for cardec 1.0.3
File Size Uploaded
cardec-1.0.3.tar.gz 21.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for cardec 1.0.3
File Interpreter ABI Platform
cardec-1.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 49.8 kB

Release files / cardec-1.0.3.tar.gz

Download URL cardec-1.0.3.tar.gz
Size 21.3 kB
Tags Source
SHA-256 checksum
How to use checksums
12c7c74e5e932dfb1e57320d0c5aac5b978511f31054b6049cb12b7a2293bef9
BLAKE2b-256 checksum
How to use checksums
e35d4cfc22c3b81dfc0720c98e496c8a3e528c7bffbcf277e7ec778de7d183cd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.5.0.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.7.0

Release files / cardec-1.0.3-py3-none-any.whl

Download URL cardec-1.0.3-py3-none-any.whl
Size 28.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
47584cee3d723d0ecd6e695f9a45cec4ec385574474afa663133755b5fae7d4c
BLAKE2b-256 checksum
How to use checksums
79a42e6471357686262ca9f17e83cb6ca39092e56506c7b9ad8d828b0a25f6b1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.5.0.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.7.0

Release history Release notifications | RSS feed

This release

1.0.3 This release

2 release files

1.0.0

2 release files

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