Skip to content

Commit 17559b5

Browse files
committed
Restructure Install instructions
1 parent e92e132 commit 17559b5

File tree

1 file changed

+93
-96
lines changed

1 file changed

+93
-96
lines changed

README.md

Lines changed: 93 additions & 96 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,22 @@
1-
<div style="text-align:center"><img src ="dekupl-annot-logo.png" /></div>
1+
![dekupl-annot logo](dekupl-annot-logo.png)
22

3-
# DE-kupl Annotation [![Build Status](https://travis-ci.org/Transipedia/dekupl-annotation.svg?branch=new-version)](https://travis-ci.org/Transipedia/dekupl-annotation) [![docker pull](https://img.shields.io/docker/pulls/transipedia/dekupl-annotation.svg)](https://hub.docker.com/r/transipedia/dekupl-annotation/) [![conda install](https://anaconda.org/transipedia/dekupl-annotation/badges/downloads.svg)](https://anaconda.org/Transipedia/dekupl-annotation)
3+
[![Build Status](https://travis-ci.org/Transipedia/dekupl-annotation.svg?branch=new-version)](https://travis-ci.org/Transipedia/dekupl-annotation) [![docker pull](https://img.shields.io/docker/pulls/transipedia/dekupl-annotation.svg)](https://hub.docker.com/r/transipedia/dekupl-annotation/) [![conda install](https://anaconda.org/transipedia/dekupl-annotation/badges/downloads.svg)](https://anaconda.org/Transipedia/dekupl-annotation)
44

55
DE-kupl annotation is part of the DE-kupl package, and performs annotations of DE contigs identified by DE-kupl.
66

7+
- [Usage](#usage)
8+
- [Creating the index](#creating-the-index)
9+
- [Annotating contigs](#annotating-contigs)
10+
- [Tutorial & toys](#tutorial--toys)
11+
- [Installation](#installation)
12+
- [Option 1: Use dekupl-annotation with conda](#option-1-use-dekupl-annotation-with-conda)
13+
- [Option 2: Use dekupl-annotation with Docker](#option-2-use-dekupl-annotation-with-docker)
14+
- [Option 3: Use dekupl-annotation with singularity](#option-3-use-dekupl-annotation-with-singularity)
15+
- [Option 4: Install from the sources (not recommended)](#option-4-install-from-the-sources-not-recommended)
16+
- [Output files](#output-files)
17+
- [Ontology](#ontology)
18+
- [Dev environnement](#dev-environnement)
19+
720
## Usage
821

922
### Creating the index
@@ -94,99 +107,83 @@ dkpl annot -i test_index --deg toy/dkpl-run/DEGs.tsv.gz --norm-gene-counts toy/d
94107
```
95108
## Installation
96109

97-
### Required dependencies
98-
99-
* bash (version >= 4.3.46)
100-
* R (version >= version 3.2.3) with libraries DESeq2
101-
* GSNAP (version >= 2016-11-07)
102-
* samtools (version >= 1.3)
103-
* blast (version >= 2.5.0+)
104-
105-
### Optional dependencies
106-
107-
* STAR (version >= 2.5.3) for chimeric RNA
108-
109-
### Run dekupl-annotation with conda
110-
#### Install conda (miniconda or anaconda)
111-
112-
First you need to install conda, miniconda is harder to use because it comes with nothing installed
113-
114-
```
115-
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh
116-
bash Miniconda3-latest-Linux-x86_64.sh
117-
```
118-
#### Install dekupl-annotation
119-
120-
```
121-
conda install -n dekupl -y -m --override-channels -c transipedia -c bioconda -c conda-forge -c https://repo.anaconda.com/pkgs/main -c https://repo.anaconda.com/pkgs/free -c https://repo.anaconda.com/pkgs/pro dekupl-annotation
122-
```
123-
This will create a conda environment dekupl (if missing) and install dekupl-annotation inside, the order of the parameters is important.
124-
125-
#### Run dekupl-annotation
126-
```
127-
source activate dekupl
128-
dkpl index -g toy/references/GRCh38-chr22.fa.gz -a toy/references/GRCh38-chr22.gff.gz -i test_index
129-
```
130-
131-
132-
### Run dekupl-annotation with docker
133-
#### Pull
134-
```
135-
docker pull transipedia/dekupl-annotation
136-
```
137-
#### Run
138-
You may need to define some volumes like your input and output directory
139-
140-
#### Example
141-
```
142-
docker run --rm -v ${PWD}/toy:/data/toy -v ${PWD}/test_index:/data/test_index transipedia/dekupl-annotation index -g /data/toy/references/GRCh38-chr22.fa.gz -a /data/toy/references/GRCh38-chr22.gff.gz -i /data/test_index
143-
```
144-
145-
146-
### Run dekupl-annotation with singularity
147-
```
148-
singularity pull docker://transipedia/dekupl-annotation
149-
./dekupl-annotation.simg index -g toy/references/GRCh38-chr22.fa.gz -a toy/references/GRCh38-chr22.gff.gz -i test_index
150-
```
151-
OR
152-
```
153-
singularity build dekupl-annotation.img docker://transipedia/dekupl-annotation
154-
singularity run ./dekupl-annotation.img index -g toy/references/GRCh38-chr22.fa.gz -a toy/references/GRCh38-chr22.gff.gz -i test_index
155-
```
156-
You don't need to mount any volumes with singularity, but you must have your config.json and your inputs file in the directory where you are running dekupl-annotation.
157-
158-
### Install from the sources
159-
160-
#### Install Dependancies
161-
162-
Dependencies are cpan-minus (aka cpanm) and Dist::Zilla :
163-
164-
```
165-
apt-get install cpanminus libdist-zilla-perl gmap samtools ncbi-blast+
166-
Rscript install_r_packages.R # Install DESeq2 from bioconductor
167-
```
168-
169-
#### Global install
170-
171-
The following command, will clone the repository and install dkpl-annot globaly with dzil and cpanm.
172-
173-
```
174-
git clone https://github.com/Transipedia/dekupl-annotation.git && cd dekupl-annotation
175-
dzil install --install-command 'cpanm .'
176-
```
177-
178-
#### Local install
179-
180-
For local install you need to use the `-l LOCAL_DIR` parameter of cpanm.
181-
Then you need to make sure that the Perl library that have been installed locally
182-
are available to the path using the `PERL5LIB` environnement variable.
183-
184-
For example :
185-
186-
```
187-
dzil install --install-command 'cpanm -l $HOME/.local .'
188-
export PERL5LIB=$HOME/.local/lib/perl5:$PERL5LIB
189-
```
110+
We recommand tu use [conda](https://anaconda.org/) to install dekupl-annotation, but you can also use Docker, Singularity and manual installation.
111+
112+
### Option 1: Use dekupl-annotation with conda
113+
114+
- **Step 1: Install conda.** If you do not have a conda distribution installed, we recommend to install miniconda as follows. See [Miniconda website](https://conda.io/miniconda.html) for other installation instructions (ex. for OSX).
115+
```
116+
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh
117+
bash Miniconda3-latest-Linux-x86_64.sh
118+
```
119+
- **Step 2: Install dekupl-annotatation**. This will create a dekupl conda environment (if missing) and install dekupl-annotation inside. The order of parameters is important.
120+
```
121+
conda install -n dekupl -y -m --override-channels -c transipedia \
122+
-c bioconda -c conda-forge -c https://repo.anaconda.com/pkgs/main \
123+
-c https://repo.anaconda.com/pkgs/free \
124+
-c https://repo.anaconda.com/pkgs/pro dekupl-annotation
125+
```
126+
- **Step 3: Run dekupl-annotation**. We first activate the conda environement where dekupl-annotation was installed, then we run the software.
127+
```
128+
source activate dekupl
129+
dkpl index -g toy/references/GRCh38-chr22.fa.gz -a toy/references/GRCh38-chr22.gff.gz -i test_index
130+
dkpl annot -i test_index toy/dkpl-run/merged-diff-counts.tsv.gz
131+
```
132+
133+
### Option 2: Use dekupl-annotation with Docker
134+
135+
- **Step 1: Retrieve the docker image.**
136+
```
137+
docker pull transipedia/dekupl-annotation
138+
```
139+
- **Step 2: Run dekupl-annotation**.
140+
You may need to mount some volumes (input and output directories)
141+
```
142+
docker run --rm -v ${PWD}/toy:/data/toy -v ${PWD}/test_index:/data/test_index \
143+
transipedia/dekupl-annotation index -g /data/toy/references/GRCh38-chr22.fa.gz \
144+
-a /data/toy/references/GRCh38-chr22.gff.gz -i /data/test_index
145+
```
146+
147+
### Option 3: Use dekupl-annotation with singularity
148+
149+
One can create a singularity container from the docker image. Two methods are available, they should both work.
150+
151+
A difference with docker image is that with Singularity, you don't need to mount any volume, but you must have your config.json and your inputs file in the directory where you are running dekupl-annotation.
152+
153+
- **Method 1**
154+
```
155+
singularity pull docker://transipedia/dekupl-annotation
156+
./dekupl-annotation.simg index -g toy/references/GRCh38-chr22.fa.gz \
157+
-a toy/references/GRCh38-chr22.gff.gz -i test_index
158+
```
159+
- **Method 2**
160+
```
161+
singularity build dekupl-annotation.img docker://transipedia/dekupl-annotation
162+
singularity run ./dekupl-annotation.img index -g toy/references/GRCh38-chr22.fa.gz \
163+
-a toy/references/GRCh38-chr22.gff.gz -i test_index
164+
```
165+
166+
### Option 4: Install from the sources (not recommended)
167+
168+
- **Step 1: Install dependancies**. Before using Dekupl-annotation, install these dependencies:
169+
- **Required**: bash (version >= 4.3.46), R (version >= version 3.2.3) with libraries DESeq2, GSNAP (version >= 2016-11-07), samtools (version >= 1.3) & blast (version >= 2.5.0+)
170+
- **Optional** : STAR (version >= 2.5.3) for chimeric RNA
171+
- Installing dependancies on Linux Debian
172+
```
173+
apt-get install cpanminus libdist-zilla-perl gmap samtools ncbi-blast+ rna-star
174+
Rscript install_r_packages.R # Install DESeq2 from bioconductor
175+
```
176+
- **Step 2: Install dekupl-annot**
177+
- **Global install**: The following command, will clone the repository and install dkpl-annot globaly with dzil and cpanm.
178+
```
179+
git clone https://github.com/Transipedia/dekupl-annotation.git && cd dekupl-annotation
180+
dzil install --install-command 'cpanm .'
181+
```
182+
- **Local install**: For local install you need to use the `-l LOCAL_DIR` parameter of cpanm. Then you need to make sure that the Perl library that have been installed locally are available to the path using the `PERL5LIB` environnement variable.
183+
```
184+
dzil install --install-command 'cpanm -l $HOME/.local .'
185+
export PERL5LIB=$HOME/.local/lib/perl5:$PERL5LIB
186+
```
190187
191188
## Output files
192189
@@ -261,4 +258,4 @@ Then, add the local dir to the PERL5LIB env var to use the modules locally.
261258
export PERL5LIB=$PWD/lib:$PERL5LIB
262259
```
263260
264-
You are ready to code!
261+
You are ready to code!

0 commit comments

Comments
 (0)