A pipeline for analyzing fungal genomic data
Project description
# FunPipe: a python library for building best practice fungal genomic analysis pipeline
`FunPipe` is a python library designed for efficient implementation of bioinformatic tools and pipelines for fungal genomic analysis. It contains wrapper functions to popular tools, customized functions for specific analyses tasks, and command line tools developed using those functions. This package is developing to facilitate fungal genomics, but many of the functions are generally applicable to other genomic analysis as well.
## Requirements
* Python >= 3.7
* Bioinformatic tool collections: can be automatically installed via conda [here](#CONDA)
* Basic functions:
- samtools>=1.9
- bwa>=0.7.8
- gatk>=3.8
- picard>=2.18.17
* Phylogenetics:
- raxml>=8.2.12
- readseq>=2.1.30
* CNV:
- breakdancer>=1.4.5
- cnvator>=0.3
- covisr>=0.1
* Microbiome:
- pilon>=1.23
- diamond>=0.9.22
The above list of bioinformatic tools need to be properly installed and add to `PATH`. Path to Java tools (JARs) need to be specified when evocaking specific functions.
### Installation
**<a name='CONDA'>Install with Conda</a>**
It is recommended to install funpipe via conda, as it automatically setup all required bioinformatic tools. This is extremely useful on servers or
clusters without root privilage. Make sure `conda` is available in your environment via `which conda`. If `conda` is not available in your system, install Python3.7 version of it [here](https://conda.io/miniconda.html).
HTTP errors sometimes occur when creating the conda environment, simply rerun the `conda env create -f conda_env.yml` to continue creating the environment.
```sh
# clone this repo
git clone git@github.com:broadinstitute/funpipe.git
# setup conda environment
cd funpipe
conda env create -f conda_env.yml # this will take about 10 min
conda list # verify new environment was installed correctly
# activate funpipe environment
conda activate funpipe
# the latest stable version of funpipe is available in this environment
# to use the latest funpipe version, do
pip install .
# deactivate the environment when done
conda deactivate
# completely remove the virtual environment
conda remove -name funpipe --all
```
Note:
* `diamond=0.9.22` uses boost library, which depends on `python 2.7`. This conflicts with funpipe's python version. To use diamond, use it via [docker](#DOCKER).
**Install with PIP**
PIP can be used to install funpipe.
```sh
# install latest stable release
pip install funpipe
# install a specific version
pip install funpipe==0.1.0
```
To install the latest version: funpipe
```sh
git clone git@github.com:broadinstitute/funpipe.git
cd funpipe
pip install .
```
**<a name='DOCKER'>Install via Docker</a>**
There's a bit more overhead using Docker, but it came along with the benefits of consistent environment (i.e.: including the operation systems). It's very useful when using `funpipe` on the cloud.
To use docker:
```
# Download docker
docker pull broadinstitute/funpipe:latest
# Run analysis interactively
docker run --rm -v $path_to_data/data -t broadinstitute/funpipe \
/bin/bash -c "/scripts/vcf_qc_metr.py \
-p prefix --jar /bin/GenomeAnalysisTK.jar \
--fa /data/reference.fa
"
```
You can use `Dockerfile` to compile the docker from scratch:
```sh
cd funpipe
docker build funpipe .
```
### Synposis
* [funpipe](./funpipe): a directory that contains python library
* [scripts](./scripts): a set of executables for high level analysis
* [tests](./tests): module tests
* [docs](./docs): documentation
* `setup.py`: pip setup script
* `conda_env.yml`: spec file for setting up conda environment
* `Dockerfile`: docker images
### Documentation
Major analysis pipelines:
- Quality control modules
- Reference genome quality evaluation with `Pilon`.
- FASTQ quality control with `fastqc`.
- BAM quality control using `Picard`.
- VCF quality control using `GATK VariantEval`.
- Variant Annotation with `snpEff`.
- Genomic Variation
- Coverage analysis
- Mating type analysis
- Copy number variation with `CNVnator`
- Structural variant analysis with `breakdancer`
- Phylogenetic analysis
- Dating analysis with `BEAST`.
- Phylogenetic tree with `FastTree`, `RAxML` and `IQTREE`.
- GWAS analysis with `GEMMA`.
Here are scripts to run each of the above pipelines, use `<toolname> -h` to see manual.
```sh
##### Quality control #####
run_pilon.py # Evaluate reference genome quality with pilon
fastqc.py # Fastq quality control
bam_qc_metr.py # Quality control of BAMs
vcf_qc_metr.py # Quality control of VCFs
##### Variant Annotation #####
run_snpeff.py # Annotation genomic variants with snpEff
phylo_analysis.py # Phylogenetic analysis
##### Genomic Variations #####
coverage_analysis.py # Hybrid coverage and ploidy analysis
```
You can also use out APIs to build your customized analysis scripts or pipelines. Checkout documents at: https://funpipe.readthedocs.io
`FunPipe` is a python library designed for efficient implementation of bioinformatic tools and pipelines for fungal genomic analysis. It contains wrapper functions to popular tools, customized functions for specific analyses tasks, and command line tools developed using those functions. This package is developing to facilitate fungal genomics, but many of the functions are generally applicable to other genomic analysis as well.
## Requirements
* Python >= 3.7
* Bioinformatic tool collections: can be automatically installed via conda [here](#CONDA)
* Basic functions:
- samtools>=1.9
- bwa>=0.7.8
- gatk>=3.8
- picard>=2.18.17
* Phylogenetics:
- raxml>=8.2.12
- readseq>=2.1.30
* CNV:
- breakdancer>=1.4.5
- cnvator>=0.3
- covisr>=0.1
* Microbiome:
- pilon>=1.23
- diamond>=0.9.22
The above list of bioinformatic tools need to be properly installed and add to `PATH`. Path to Java tools (JARs) need to be specified when evocaking specific functions.
### Installation
**<a name='CONDA'>Install with Conda</a>**
It is recommended to install funpipe via conda, as it automatically setup all required bioinformatic tools. This is extremely useful on servers or
clusters without root privilage. Make sure `conda` is available in your environment via `which conda`. If `conda` is not available in your system, install Python3.7 version of it [here](https://conda.io/miniconda.html).
HTTP errors sometimes occur when creating the conda environment, simply rerun the `conda env create -f conda_env.yml` to continue creating the environment.
```sh
# clone this repo
git clone git@github.com:broadinstitute/funpipe.git
# setup conda environment
cd funpipe
conda env create -f conda_env.yml # this will take about 10 min
conda list # verify new environment was installed correctly
# activate funpipe environment
conda activate funpipe
# the latest stable version of funpipe is available in this environment
# to use the latest funpipe version, do
pip install .
# deactivate the environment when done
conda deactivate
# completely remove the virtual environment
conda remove -name funpipe --all
```
Note:
* `diamond=0.9.22` uses boost library, which depends on `python 2.7`. This conflicts with funpipe's python version. To use diamond, use it via [docker](#DOCKER).
**Install with PIP**
PIP can be used to install funpipe.
```sh
# install latest stable release
pip install funpipe
# install a specific version
pip install funpipe==0.1.0
```
To install the latest version: funpipe
```sh
git clone git@github.com:broadinstitute/funpipe.git
cd funpipe
pip install .
```
**<a name='DOCKER'>Install via Docker</a>**
There's a bit more overhead using Docker, but it came along with the benefits of consistent environment (i.e.: including the operation systems). It's very useful when using `funpipe` on the cloud.
To use docker:
```
# Download docker
docker pull broadinstitute/funpipe:latest
# Run analysis interactively
docker run --rm -v $path_to_data/data -t broadinstitute/funpipe \
/bin/bash -c "/scripts/vcf_qc_metr.py \
-p prefix --jar /bin/GenomeAnalysisTK.jar \
--fa /data/reference.fa
"
```
You can use `Dockerfile` to compile the docker from scratch:
```sh
cd funpipe
docker build funpipe .
```
### Synposis
* [funpipe](./funpipe): a directory that contains python library
* [scripts](./scripts): a set of executables for high level analysis
* [tests](./tests): module tests
* [docs](./docs): documentation
* `setup.py`: pip setup script
* `conda_env.yml`: spec file for setting up conda environment
* `Dockerfile`: docker images
### Documentation
Major analysis pipelines:
- Quality control modules
- Reference genome quality evaluation with `Pilon`.
- FASTQ quality control with `fastqc`.
- BAM quality control using `Picard`.
- VCF quality control using `GATK VariantEval`.
- Variant Annotation with `snpEff`.
- Genomic Variation
- Coverage analysis
- Mating type analysis
- Copy number variation with `CNVnator`
- Structural variant analysis with `breakdancer`
- Phylogenetic analysis
- Dating analysis with `BEAST`.
- Phylogenetic tree with `FastTree`, `RAxML` and `IQTREE`.
- GWAS analysis with `GEMMA`.
Here are scripts to run each of the above pipelines, use `<toolname> -h` to see manual.
```sh
##### Quality control #####
run_pilon.py # Evaluate reference genome quality with pilon
fastqc.py # Fastq quality control
bam_qc_metr.py # Quality control of BAMs
vcf_qc_metr.py # Quality control of VCFs
##### Variant Annotation #####
run_snpeff.py # Annotation genomic variants with snpEff
phylo_analysis.py # Phylogenetic analysis
##### Genomic Variations #####
coverage_analysis.py # Hybrid coverage and ploidy analysis
```
You can also use out APIs to build your customized analysis scripts or pipelines. Checkout documents at: https://funpipe.readthedocs.io
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
funpipe-0.1.0.tar.gz
(39.2 kB
view details)
Built Distribution
funpipe-0.1.0-py3-none-any.whl
(75.6 kB
view details)
File details
Details for the file funpipe-0.1.0.tar.gz
.
File metadata
- Download URL: funpipe-0.1.0.tar.gz
- Upload date:
- Size: 39.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.20.1 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.7.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fd411ba0d6e087241a43630f6f7e2e8c8fba20051eb956490145afdddfe60a90 |
|
MD5 | ea4b3255ed2e67ef0e5ab41be18ffc10 |
|
BLAKE2b-256 | 79507ea92698fb48400015fbf1ca253a6f993adde1a05228c3c414668c4afeb4 |
File details
Details for the file funpipe-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: funpipe-0.1.0-py3-none-any.whl
- Upload date:
- Size: 75.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.20.1 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.7.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 77fe1eb70f95028de962178f4335e2ea5de8f76800e68cdcb31f7c275d1f00e0 |
|
MD5 | 9128ff59df3b86eb2c9db3b4cf4d9464 |
|
BLAKE2b-256 | f1d64ff62aab1295e3600e36f2bad3cceb1bc8ad94a7a83d4e6df9b9bde55f9a |