Skip to content

Commit 1fd635f

Browse files
committed
Version 2.0 overhaul
1 parent 29af0aa commit 1fd635f

File tree

5 files changed

+223
-121
lines changed

5 files changed

+223
-121
lines changed

.TitleSplash.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
Logo="\n\n
2-
_.-***. _.-***. Odyssey v1.5 .***-._ .***-._
2+
_.-***. _.-***. Odyssey v2.0 .***-._ .***-._
33
.* .* .* .* Updated *. *. *. *.
4-
_* *__* *_ 8-15-2018 _* *__* *_\n\n"
4+
_* *__* *_ 1-1-2019 _* *__* *_\n\n"

Configuration/Impute4/.README

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Place Impute 4 executable file here

Configuration/Singularity/OdysseyContainer.def

+70-15
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,24 @@
11
BootStrap: docker
22
From: ubuntu:latest
33

4-
#BootStrap: debootstrap
5-
#OSVersion: stable
6-
#MirrorURL: http://ftp.us.debian.org/debian/
4+
## ===========================================================
5+
## Instructions:
6+
## On a Linux (ubuntu) system that has Singularity installed
7+
## perform a Singularity Build command with this Singularity
8+
## definition file
9+
##
10+
## Build Command Sandbox Build (interact with folders):
11+
# sudo singularity build --sandbox Odyssey OdysseyDefF.def
12+
## Remove the Sandbox Container: sudo rm -rf Odyssey
13+
## Build Command:
14+
# sudo singularity build Odyssey.sif OdysseyDefF.def
15+
## Test Installation Command:
16+
# singularity exec ./Odyssey snptest -help
17+
## ===========================================================
718

819
%post
920

1021

11-
1222
# Install Important OS Programs
1323
apt update
1424
apt -y upgrade
@@ -17,70 +27,115 @@ From: ubuntu:latest
1727
apt -y install unzip
1828
#apt -y install make
1929
apt -y install gcc
30+
apt -y install gnustep-base-runtime
31+
apt -y install locales
2032

2133

22-
# Install R
23-
#export DEBIAN_FRONTEND=noninteractive
34+
# Export language preferences
35+
locale-gen en_US.UTF-8
36+
2437
export LANG=en_US.UTF-8
2538
export LC_ALL=en_US.UTF-8
39+
defaults write org.R-project.R force.LANG en_US.UTF-8
40+
41+
# Install R dependencies
2642

2743
apt -y install libcurl4-openssl-dev
2844
apt -y install libudunits2-dev
2945
apt -y install libssl-dev
3046
apt -y install libxml2-dev
47+
apt -y install xorg
48+
apt -y install libx11-dev
49+
apt -y install libcairo2-dev
50+
apt -y install libmagick++-dev
51+
52+
53+
54+
# Install R itself
55+
3156
apt -y install r-base
3257
apt -y install libopenblas-base
3358

34-
#defaults write org.R-project.R force.LANG en_US.UTF-8
3559

3660
# Install R Packages
3761

38-
Rscript -e "install.packages('data.table', dependencies=T, repos='https://cran.cnr.berkeley.edu/')"
39-
Rscript -e "install.packages('tidyverse', dependencies=T, repos='https://cran.cnr.berkeley.edu/')"
40-
Rscript -e "install.packages('qqman', dependencies=T, repos='https://cran.cnr.berkeley.edu/')"
41-
Rscript -e "install.packages('manhattanly', dependencies=T, repos='https://cran.cnr.berkeley.edu/')"
62+
#Rscript -e "install.packages(c('rgl', 'gdtools'), dependencies=T, repos='https://cran.cnr.berkeley.edu/')"
63+
64+
Rscript -e "install.packages(c('data.table','tidyverse','qqman', 'manhattanly','scales','ggplot2','car', 'MASS','gridExtra', 'rcompanion'), dependencies=T, repos='https://cran.cnr.berkeley.edu/')"
4265
#Rscript -e "install.packages('openssl', dependencies=T, repos='https://cran.cnr.berkeley.edu/')"
4366

44-
67+
4568
# Tidy Up Apt-get package manager
69+
4670
apt-get clean
4771

4872

49-
50-
# Install Plink (to /usr/local/bin/)
73+
# Install Plink2 (to /usr/local/bin/)
74+
75+
# Download from site
76+
wget --output-document=/usr/local/bin/Plink2.zip http://s3.amazonaws.com/plink2-assets/plink2_linux_x86_64_20190102.zip
5177

52-
wget --output-document=/usr/local/bin/Plink2.zip http://s3.amazonaws.com/plink2-assets/plink2_linux_x86_64_20181028.zip
78+
# Unpack
5379
unzip /usr/local/bin/Plink2.zip -d /usr/local/bin/
80+
81+
# Remove the installation Clutter
5482
rm /usr/local/bin/Plink2.zip
5583

5684

85+
# Install SNPTEST (to /usr/local/bin/)
86+
87+
# Download from site
88+
wget --output-document=/usr/local/bin/SNPTEST.tgz http://www.well.ox.ac.uk/~gav/resources/snptest_v2.5.4-beta3_linux_x86_64_dynamic.tgz
89+
90+
# Unpack
91+
tar -xvzf /usr/local/bin/SNPTEST.tgz -C /usr/local/bin/
92+
93+
# Set the stupid permission
94+
chmod -R 775 /usr/local/bin/snptest_v2.5.4-beta3_linux_x86_64_dynamic/
95+
96+
# Move executable to PATH directory
97+
mv /usr/local/bin/snptest_v2.5.4-beta3_linux_x86_64_dynamic/snptest_v2.5.4-beta3 /usr/local/bin/snptest
98+
99+
# Remove the installation Clutter
100+
rm /usr/local/bin/SNPTEST.tgz
101+
102+
57103
# Install Miniconda (to /usr/local/bin/)
104+
# Download from site
58105
wget --output-document=/usr/local/bin/MinicondaSetup.sh https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
106+
107+
# Congigure
59108
bash /usr/local/bin/MinicondaSetup.sh -b -p /usr/local/bin/miniconda
109+
110+
# Remove the installation Clutter
60111
rm /usr/local/bin/MinicondaSetup.sh
61112

62113
# Temporary export Miniconda exec path to PATH to finish installation via miniconda
63114

64115
export PATH=/usr/local/bin/miniconda/bin:$PATH
65116

117+
66118
# Setup Miniconda for Bioconda
67119

68120
conda config --add channels defaults
69121
conda config --add channels bioconda
70122
conda config --add channels conda-forge
71123
#conda config --add channels r
72124

125+
73126
# Install Odyssey Dependencies via Bioconda
74127

75128
conda update conda
76129
conda install -y htslib
77130
conda install -y bcftools
78131
conda install -y plink
79132
conda install -y shapeit
133+
conda install -y impute2
80134
#conda install -y R
81135

82136

83137
%environment
138+
84139
export PATH=/usr/local/bin/miniconda/bin:$PATH
85140
export LANG=en_US.UTF-8
86141
export LC_ALL=en_US.UTF-8
Binary file not shown.

0 commit comments

Comments
 (0)