-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathSingularity
94 lines (68 loc) · 2.81 KB
/
Singularity
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
# The babette R package, with BEAST2 and the BEAST2 NS package installed
Bootstrap: docker
From: rocker/tidyverse
%post
# From https://github.com/brucemoran/Singularity/blob/8eb44591284ffb29056d234c47bf8b1473637805/shub/bases/recipe.CentOs7-R_3.5.2#L21
echo 'export LANG=en_US.UTF-8 LANGUAGE=C LC_ALL=C LC_CTYPE=C LC_COLLATE=C LC_TIME=C LC_MONETARY=C LC_PAPER=C LC_MEASUREMENT=C' >> $SINGULARITY_ENVIRONMENT
sudo apt-get install -qq libcurl4-openssl-dev
apt search openjdk
sudo apt install -qq openjdk-11-jre-headless
# sudo apt install -qq default-jre
# sudo apt-get install -qq r-cran-rjava
# sudo apt-get install -qq openjdk-13-*
sudo $(which R) CMD javareconf
sudo apt install -qq libfontconfig1-dev
sudo apt install -qq libharfbuzz-dev libfribidi-dev
Rscript -e 'install.packages(c("remotes", "rcmdcheck"))'
Rscript -e 'remotes::install_cran("shiny")'
Rscript -e 'remotes::install_github("ropensci/beautier")'
Rscript -e 'remotes::install_github("ropensci/beastier")'
Rscript -e 'remotes::install_github("richelbilderbeek/beastierinstall")'
Rscript -e 'beastierinstall::install_beast2(folder_name = "/opt/beastier")'
Rscript -e 'remotes::install_github("richelbilderbeek/mauricer")'
Rscript -e 'remotes::install_github("richelbilderbeek/mauricerinstall")'
Rscript -e 'mauricerinstall::install_beast2_pkg(name = "NS", beast2_folder = "/opt/beastier")'
Rscript -e 'remotes::install_github("richelbilderbeek/babette")'
%runscript
echo "'babette.sif' running with arguments '$@'"
exec "$@"
%test
Rscript -e 'beastier::beastier_report(beast2_folder = "/opt/beastier")'
%help
This container has the R package babette, the tool BEAST2
and the BEAST2 package 'NS' installed.
When using this container, set `beast2_folder` to `/opt/beastier`.
To obtain the `beast2_path` use `beastier::get_default_beast2_path`.
For example:
```
library(beastier)
# Folder that contains BEAST2
beast2_folder <- "/opt/beastier"
# Path to the BEAST2 binary/jar file
beast2_path <- get_default_beast2_path(
beast2_folder = beast2_folder
)
# Setup a default BEAST2 run
beast2_options <- create_beast2_options(
beast2_path = beast2_path
)
# Setup a default inference model
inference_model <- create_test_inference_model()
bbt_run_from_model(
fasta_filename = get_babette_path("anthus_aco.fas"),
inference_model = inference_model,
beast2_options = beast2_options
)
# Clean up temporary files created by babette
bbt_delete_temp_files(
inference_model = inference_model,
beast2_options = beast2_options
)
```
%labels
AUTHOR Richel J.C. Bilderbeek
NAME babette
DESCRIPTION The babette R package, with BEAST2 and the BEAST2 NS package installed
USAGE send the text of an R script to the container
URL https://github.com/ropensci/babette
VERSION 2.3.4