Skip to main content

Cohort Analysis Platform

Project description

Cohort Analysis Platform (CAP)

What is CAP?

In short, CAP is going to automate some of the common genomic processing pipelines and facilitate analysis of the outcomes by creating astonishing reports. As a simple example, think of a genomic case-control study also known as Genome-Wide Association Study (GWAS). Here is the simplest workflow you can imagine:

  1. Get the data into the format supported by the software you are using.
  2. Compute quality metrics for samples and variants (SNPs), and then prune (clean up) data.
  3. Perform Principal Component Analysis (PCA), create plots, and make sure the case and control group are not separated in the plot.
  4. Perform Logistic-Regression or other statistical tests to identify the association power of variants.
  5. Create a manhattan plot and dive into the region with a strong association to find a convincing argument.

Unfortunately, the simple pipeline above may not reveal the answer in one go. You may need to iterate through this many times, changing the parameters, and adding more and more steps like relatedness check and etc. If you are unlucky and couldn't find the answer, you need to go for a different pipeline like rare-variant, polygenic, epistatic or complex-disease analysis each of which requires many iterations to be tuned for your data.

You may run tens or hundreds of experiments with the datasets which makes it very difficult to keep track of everything and manage all the data you have produced.

Also, you have to deal with a chicken or the egg paradox too. If you don't perform an analysis with perfection (i.e. create the most efficient report and visualisation of the outcome), you may miss the important information your pipeline is capable of discovering. On the other hand, You may not have enough time for this perfection as many of the analysis simply fail and you need to move on quickly. But then how could you be sure if the analysis is useless if you don't do it with perfection.

That is why we feel the necessity of automation for widely-used genomic workflows. CAP is our response to this necessity. CAP is going to perform a wide range of analysis on your cohort and provide you with a comprehensive reports. By studying these reports you get an in-depth understanding of your data and plan your research more effectively by focusing on the analysis that seems promising. CAP could not give you the ultimate answer but help you to move in the right direction towards the answer.

CAP, Hail and Spark (Also non-Spark)

Hail is a python library for the analysis of genomic data (and more) with an extensive list of functionalities. Hail is developed on top of Apache Sapark that allow to process data on a cluster of computers (or a single computer if you wish). That means 100GB of data is no longer a big deal. CAP uses Hail as the main analysis platform. However, CAP is not limited to hail and could integrate other tools no matter if they are implemented in Spark (i.e. Glow) or they are ordinary software (i.e. plink, bcftools and VEP).

How CAP works?

All the processing steps and their parameters are described in a workload file (yaml or json). Reading genotype data from a VCF file, breaking multi-allelic sites and computing Hardy-Weinberg statistics are three example steps in a workload. Each processing step is linked to one of the functions implemented in CAP. You can change the parameters, reorder, add or delete steps. But if you want to add a novel step (i.e. impute sex with a new algorithm), you need to implement its logic in the CAP source code first.

CAP reads the workload file and execute every single step. Note that CAP is designed to automate some of the standard and routine pipelines and would not be as flexible as working with Hail or any other tools directly. Yet we try to provide as much flexibility as possible through parameters.

Installation

You can simply install cap using pip.

pip install cap-genomics

We strongly recommend to do so in a virtual environemnt (i.e. using conda).

conda create --name capenv python=3.9
conda activate capenv
pip install cap-genomics

The above installation does not include example files used in out tutorial page on GitHub. To run examples you need to clone this reposetory.

git clone https://github.com/ArashLab/CAP.git

Note that hail is a requierment of cap. So when you install cap using pip, hail is also gets installed on your system. However hail has some dependencies which must be installed prior pip installation. See here for more details.

Documentation

See our documentation page on GitHub

Tutorial

See our tutorial page on GitHub for step by step examples.

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

cap-genomics-0.1.32.tar.gz (25.6 kB view details)

Uploaded Source

Built Distribution

cap_genomics-0.1.32-py3-none-any.whl (27.3 kB view details)

Uploaded Python 3

File details

Details for the file cap-genomics-0.1.32.tar.gz.

File metadata

  • Download URL: cap-genomics-0.1.32.tar.gz
  • Upload date:
  • Size: 25.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.9.5

File hashes

Hashes for cap-genomics-0.1.32.tar.gz
Algorithm Hash digest
SHA256 c229df62339e31b20ea0566f4a06587a0542488916bd6323b46869d23ce43ea7
MD5 fb5eec38fba00a6d57e9170cbcc036c4
BLAKE2b-256 b350c841bcfc1491caddccb26b3cfc61a0cfd9b76c264b7e70fb621a54586e93

See more details on using hashes here.

File details

Details for the file cap_genomics-0.1.32-py3-none-any.whl.

File metadata

  • Download URL: cap_genomics-0.1.32-py3-none-any.whl
  • Upload date:
  • Size: 27.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.9.5

File hashes

Hashes for cap_genomics-0.1.32-py3-none-any.whl
Algorithm Hash digest
SHA256 fc126bf8b4cb8e0d68167991299e223098ca9f958f770af1c7d9993c3f18fb36
MD5 0b9914f0a1089a77a3c0be7eb576b966
BLAKE2b-256 b22e1abf41abfd2f0bff5712d7c6c0a7ebd0242ca1b1d1d7fe326e4c998b3f97

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