rbbt-image 0.1.25 → 0.1.26

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0537ca8e50ce927886c8a21afbe078059aa75c09
4
- data.tar.gz: 97cd46d82ff5951459fa3e5a144b409ad7f8b5e8
3
+ metadata.gz: 5ede89962854413ae2565fde3f030fc21a95b396
4
+ data.tar.gz: db2c48b96ffe082dd5e2fb2142e938ac8b18fd08
5
5
  SHA512:
6
- metadata.gz: 1418697fc48d5fc3a863801a56f3e40c8b711db2f914569d952e2c16efe276ecac4419e0cad85b91757ab2e08ec05a36acb5d397a1437e28e6338674e4141a2d
7
- data.tar.gz: 8dadc56b89c8cb4de7f6720f35a4ee3fdfed10eef8fad619d4253e43ac6bc7b43ad39b108e253a88df070c9ea372124e9682dff9c10501b1d3c70ab9b2bc9ab9
6
+ metadata.gz: 7ba3e545a8ba417fe23e54209d54147b3436a902eaf1801437e434118726147941784cac9714e97d8db5784cc66880a86e593c94356d9ed043b0e39f04bb6e8c
7
+ data.tar.gz: f9d1dbc5c0a1e326f4b3d48fb2f52519f590b1384a8f7bfca08907fdfa20f3565db78f7cfe319049ac29e718897c0d9eda595a88cc1190e92aa6477e708846a4
@@ -116,6 +116,7 @@ else
116
116
  end
117
117
  }
118
118
 
119
+ echo "[ -f ~/.rbbt/etc/environtment ] && . ~/.rbbt/etc/environtment" >> "/etc/rbbt_environment"
119
120
  echo "source /etc/rbbt_environment" >> /etc/profile
120
121
 
121
122
  #{
@@ -255,6 +256,13 @@ else
255
256
  provision_script += "echo SKIPPED\necho\n\n"
256
257
  end
257
258
 
259
+ provision_script +=<<-EOF
260
+ # HACKS
261
+ # =====
262
+
263
+ #{File.read(script_dir + 'hacks.sh')}
264
+ EOF
265
+
258
266
  provision_script +=<<-EOF
259
267
  # CODA
260
268
  # ====
@@ -265,7 +273,7 @@ rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/doc /usr/share/man /usr
265
273
  #{ "su -l -c 'rbbt system optimize /home/#{USER}/.rbbt ' #{USER}" if OPTIMIZE}
266
274
 
267
275
  echo
268
- echo "Installation done."
276
+ echo -n "Installation done: "
269
277
  date
270
278
 
271
279
  EOF
@@ -320,10 +328,11 @@ From: #{container_dependency}
320
328
 
321
329
  %post
322
330
  cat > /tmp/rbbt_provision.sh <<"EOS"
323
- echo "source /etc/rbbt_environment" > /.singularity/env/99-rbbt_environment
324
331
  #{provision_script}
325
332
  EOS
326
333
  bash /tmp/rbbt_provision.sh
334
+ ln -s /etc/rbbt_environment /.singularity.d/env/99-rbbt_environment.sh
335
+ chmod +x /.singularity.d/env/99-rbbt_environment.sh
327
336
  EOF
328
337
  FileUtils.mkdir_p dir
329
338
  Open.write(dir["singularity_bootstrap"].find, bootstrap_text)
@@ -15,6 +15,14 @@ function R_install_packages(){
15
15
  echo "install.packages(c($pkgs), repos='http://cran.us.r-project.org')" | R --vanilla
16
16
  }
17
17
 
18
+ function R_biocLite(){
19
+ pkgs="'$1'"
20
+ shift
21
+ for p in $@; do
22
+ echo "source('http://bioconductor.org/biocLite.R'); biocLite('$p')" | R --vanilla
23
+ done
24
+ }
25
+
18
26
  function R_CMD_install(){
19
27
  url=$1
20
28
  name=$2
@@ -28,12 +36,12 @@ R_CMD_install 'https://cran.r-project.org/src/contrib/Archive/car/car_2.0-22.tar
28
36
  R_install_packages 'digest', 'gtable', 'reshape2', 'scales', 'proto'
29
37
 
30
38
  R_CMD_install 'https://cran.r-project.org/src/contrib/Archive/ggplot2/ggplot2_1.0.0.tar.gz' ggplot2
31
- R_CMD_install 'https://cran.r-project.org/src/contrib/Archive/ggthemes/ggthemes_1.7.0.tar.gz' ggthemes
32
- R_CMD_install 'https://cran.r-project.org/src/contrib/gridSVG_1.5-0.tar.gz' gridSVG
33
-
34
- R_install_packages NMF Cairo drc Rserve
35
- echo "source('http://bioconductor.org/biocLite.R'); biocLite('limma')" | R --vanilla
36
39
 
40
+ R_install_packages NMF Cairo drc Rserve gridSVG ggthemes mclust randomForest viper
37
41
  R_install_packages pheatmap VennDiagram Hmisc pls
38
42
 
43
+ R_biocLite limma viper
44
+
45
+ R_install_packages pROC
46
+
39
47
  rm /tmp/R-pkg-*.tar.gz
@@ -27,7 +27,7 @@ gem install --no-ri --no-rdoc --force \
27
27
  rbbt-util rbbt-rest rbbt-dm rbbt-text rbbt-sources rbbt-phgx rbbt-GE \
28
28
  rserve-client \
29
29
  uglifier therubyracer kramdown\
30
- puma prawn
30
+ puma prawn prawn-svg
31
31
 
32
32
  # Get good version of lockfile
33
33
  wget http://ubio.bioinfo.cnio.es/people/mvazquezg/lockfile-2.1.4.gem -O /tmp/lockfile-2.1.4.gem
@@ -0,0 +1,2 @@
1
+ # For BNReduction work
2
+ ln -s /bin/sed /usr/bin/sed
@@ -13,7 +13,7 @@ make && make install
13
13
 
14
14
  unset _small_version
15
15
 
16
- echo 'export PATH="/usr/local/bin:$PATH" #Ruby2' >> /etc/rbbt_environment
16
+ echo 'export PATH="/usr/local/bin:/opt/bin:$PATH" #Ruby2' >> /etc/rbbt_environment
17
17
  . /etc/rbbt_environment
18
18
 
19
19
  #\curl -sSL https://get.rvm.io | bash -s stable
@@ -12,6 +12,7 @@ apt-get -y install cmake
12
12
  apt-get -y update
13
13
  apt-get -y update
14
14
  apt-get -y install \
15
+ vim \
15
16
  bison autoconf g++ libxslt1-dev make \
16
17
  zlib1g-dev libbz2-dev libreadline6 libreadline6-dev \
17
18
  wget curl git openssl libyaml-0-2 libyaml-dev \
@@ -19,13 +20,16 @@ apt-get -y install \
19
20
  libcairo2 libcairo2-dev r-base-core r-base-dev r-cran-rserve liblzma5 liblzma-dev libcurl4-openssl-dev \
20
21
  build-essential zlib1g-dev libssl-dev libreadline6-dev libyaml-dev libffi-dev
21
22
 
23
+ # For paradigm/libdai
24
+ apt-get -y install \
25
+ libgmp-dev libboost-dev libboost-program-options-dev libboost-test-dev
22
26
 
23
27
  # This link was broken for some reason
24
28
  rm /usr/lib/R/bin/Rserve
25
29
  ln -s /usr/lib/R/site-library/Rserve/libs/Rserve /usr/lib/R/bin/Rserve
26
30
 
27
31
  echo "export R_HOME='/usr/lib/R' # For Ruby's RSRuby gem" >> /etc/rbbt_environment
28
- echo "export PATH='$R_HOME/bin/:$PATH' # Rserver" >> /etc/rbbt_environment
32
+ echo 'export PATH="$R_HOME/bin/:$PATH" # Rserver' >> /etc/rbbt_environment
29
33
 
30
34
  . /etc/rbbt_environment
31
35
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rbbt-image
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.25
4
+ version: 0.1.26
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miguel Vazquez
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-08-05 00:00:00.000000000 Z
11
+ date: 2018-08-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rbbt-util
@@ -44,6 +44,7 @@ files:
44
44
  - share/provision_scripts/R_setup.sh
45
45
  - share/provision_scripts/bootstrap.sh
46
46
  - share/provision_scripts/gem_setup.sh
47
+ - share/provision_scripts/hacks.sh
47
48
  - share/provision_scripts/ruby_setup.sh
48
49
  - share/provision_scripts/tokyocabinet_setup.sh
49
50
  - share/provision_scripts/ubuntu_setup.sh