Skip to content

Commit f4481ca

Browse files
committed
Version 1.1
Documentation is now self contained. Ansible instructions are now able to provision a Ubuntu 16.04 machine where MinVar is correctly installed with all its dependencies. This commit also closes #7 and closes #8
1 parent a5bd11b commit f4481ca

File tree

5 files changed

+36
-18
lines changed

5 files changed

+36
-18
lines changed

ansible/hosts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
[minvarmachine]
2-
172.23.10.194
2+
XYZ.XYZ.XYZ.XYZ

ansible/setup.retry

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
172.23.10.194
1+
172.23.100.212

ansible/setup.yml

Lines changed: 29 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@
1818
# apt:
1919
# upgrade=yes
2020

21+
- name: Add repo for openjdk-7
22+
apt_repository:
23+
repo: 'ppa:openjdk-r/ppa'
24+
2125
- name: Install required software
2226
apt:
2327
name={{ item }}
@@ -31,7 +35,6 @@
3135
- bwa
3236
- cmake
3337
- cython
34-
- default-jre
3538
- emboss
3639
- git
3740
- libfreetype6-dev
@@ -41,6 +44,8 @@
4144
- libwww-perl
4245
- make
4346
- muscle
47+
- maven
48+
- openjdk-7-jdk
4449
- pkg-config
4550
- python-dev
4651
- python-setuptools
@@ -138,13 +143,33 @@
138143
args:
139144
executable: /bin/bash
140145

146+
- name: Install GATK
147+
shell: |
148+
if [ ! -e "/usr/local/GATK/GenomeAnalysisTK.jar" ]; then
149+
cd /tmp
150+
rm -rf gatk-protected
151+
git clone --depth=50 --branch=master https://github.com/broadgsa/gatk-protected.git \
152+
&& cd /tmp/gatk-protected \
153+
&& git checkout tags/3.3
154+
mvn clean install \
155+
&& sudo mkdir /usr/local/GATK \
156+
&& sudo install target/GenomeAnalysisTK.jar /usr/local/GATK
157+
fi
158+
args:
159+
executable: /bin/bash
160+
141161
- name: Make picard directory
142162
file: path=/usr/local/picard-tools state=directory mode=0755
143163

144164
- name: Install picard
145-
get_url:
146-
url: https://github.com/broadinstitute/picard/releases/download/2.7.1/picard.jar
147-
dest: /usr/local/picard-tools/picard.jar
165+
shell: |
166+
if [ ! -e "/usr/local/picard-tools/picard.jar" ]; then
167+
cd /tmp
168+
rm -rf picard-tools-1.141
169+
wget -q https://github.com/broadinstitute/picard/releases/download/1.141/picard-tools-1.141.zip
170+
unzip picard-tools-1.141.zip && \
171+
sudo install picard-tools-1.141/picard.jar /usr/local/picard-tools/
172+
fi
148173
149174
- name: Change group of /opt
150175
file:

rtd/license.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@ It is worthy of note that recalibration is done by GATK, which is itself
55
subject to a dual purpose [licensing](https://software.broadinstitute.org/gatk/download/licensing.php):
66
free for academic non-commercial research activities, subject to a fee for commercial use.
77

8-
The overall licensing of MinVar is then under definition.
8+
While you are free to use MinVar without restriction for research purposes, its
9+
commercial licensing is under definition.

rtd/user-guide/installation.md

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,6 @@ A condensed list of dependencies
1111
- bwa
1212
- lofreq
1313

14-
### Install GATK
15-
16-
GATK is not (yet?) included in the instructions below because you need
17-
to register online [here](https://software.broadinstitute.org/gatk/download/)
18-
in order to download it. Then, install it in `/usr/local/GATK`. MinVar expects
19-
to find the Java archive file `/usr/local/GATK/GenomeAnalysisTK.jar`.
20-
2114
### Setting up with Ansible
2215

2316
The directory [`ansible`](https://github.com/ozagordi/MinVar/tree/master/ansible)
@@ -55,10 +48,9 @@ set up. Good instructions for this task can be found in this
5548
#### What can go wrong
5649

5750
We assumed that you have an Ubuntu 16.04 available. Most of the stuff will work
58-
on Ubuntu 14.04, but you need to switch to a newer version of Java provided by
59-
Oracle in order to run `picard`. You can find
60-
[here](https://www.digitalocean.com/community/tutorials/how-to-install-java-with-apt-get-on-ubuntu-16-04)
61-
a good tutorial on this.
51+
on Ubuntu 14.04, but you might run into troubles because of different versions
52+
of Java (you can find a good tutorial on this
53+
[here](https://www.digitalocean.com/community/tutorials/how-to-install-java-with-apt-get-on-ubuntu-16-04)).
6254

6355
`UNREACHABLE!` usually means that the private/public key pair does not work.
6456
You must be able to ssh into the remote machine with this command (edit accordingly)

0 commit comments

Comments
 (0)