Orchestrates your Copy Number Variant (CNV) bakeoff, part of research project for Clinical Bioinformatics Scientist Training Programme.
This project is aimed to collect data on the ability of CNV callers (targeted-capture Next Generation Sequencing) to detect clinically relevant CNVs. All samples should have a gold-standard known-CNV status for the gene in question. This project is aimed at bioinformaticians working in genetics laboratories but please let me know via the issues if there are any problems in installation or running, regardless.
Example setup for the system and the repository is shown below, using either python's virtual environment or conda environments if you'd prefer. If you are unsure, it is probably simpler to use the python virtual environment
At least Python3.6 and Docker (at least engine 1.10) are required for this project, and this has only been developed for unix systems.
Example Python installation for Ubuntu
Example code at time of writing shown, please use link if this is not recent.
# Check python3 version
python3 --version
If Python version is less than 3.6
# Add deadsnakes PPA
sudo apt-get install software-properties-common
sudo add-apt-repository ppa:deadsnakes/ppa
# Update apt
sudo apt-get update
# install python3.6
sudo apt-get install python3.6
Example Docker installation for Ubuntu with x86_64 architecture. CentOS, Debian and Fedora, along with other achitectures also available from the link.
Example code at time of writing shown, please use link if this is not recent.
# Remove older versions of docker. It's fine if apt-get reports that none of the packages are installed
sudo apt-get remove docker docker-engine docker.io containerd runc
# Update apt
sudo apt-get update
# Install packages to allow apt to use repository over HTTPS
sudo apt-get install \
apt-transport-https \
ca-certificates \
curl \
software-properties-common
# Add Docker's official GPG key
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
# Verify key by searching for the last 8 characters of fingerprint
sudo apt-key fingerprint 0EBFCD88
# Add stable repository for amd64 architecture
sudo add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \
stable"
# Update apt
sudo apt-get update
# Install Docker ce
sudo apt-get install docker-ce
Clone repository
git clone https://github.com/stefpiatek/cnv-patissier.git
With Python 3.6, set up virtual environment
cd cnv-patissier
# Create the virtual environment
python3.6 -m venv .venv
# Enable the virtual environment
source .venv/bin/activate
Install requirements
pip install -r requirements.txt
Clone repository
git clone https://github.com/stefpiatek/cnv-patissier.git
Create conda environment
cd cnv-patissier
# Create conda environment
conda create -n cnv-patissier python=3.6 anaconda
# Update python
conda update python
# Enable the cona environment
source activate cnv-patissier
Install requirements
pip install -r requirements.txt
cnv-patissier/output/<capture>/<date-time-of-run>/<cnv-caller>/cnv-patissier/output/cnv-patissier/successful-run-settings/<capture>/<cnv-caller>/<gene>.tomlcnv-patissier/logs/Create a directory with the name of your capture in this example I will use ICR_example, and then created bed and sample-sheets sub-directories. If in doubt, look at the input/ICR_example directory in cnv-patissier.
cd cnv-patissier
mkdir input/ICR_example
mkdir input/ICR_example/bed
mkdir input/ICR_example/sample-sheets
Copy your sorted capture bed file as the .bed e.g. cnv-patissier/input/ICR_example/bed/ICR_example.bed
For each gene in the capture where you have known CNV-status using a gold-standard, create a tab-delimited sample sheet. e.g. cnv-patissier/input/ICR_example/sample-sheets/BRCA1.txt and cnv-patissier/input/ICR_example/sample-sheets/BRCA2.txt
normal-panel or normal. Samples which have a CNV are positive
normal-panel samples, as many positive samples and a similar number of normal samplesDUP, if deletion DEL. If you really have no way of knowing, please put unknownCreate settings.py file in the base directory of cnv-patissier
cd cnv-patissier
cp example_settings.py settings.py
# edit the values in the `cnv_pat_settings` dictionary of `settings.py` for your setup
# in the root directory of cnv-patissier, with your environment activated
# e.g.
python cnv-patissier.py ICR_example
To run the tests
# in the root directory of cnv-patissier, with your environment activated
python -m pytest tests/
Content type
Image
Digest
Size
1.8 GB
Last updated
over 7 years ago
docker pull stefpiatek/codex2:26e796c