-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathSingularity
63 lines (42 loc) · 1.46 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
# The beautier R package
# Works, see https://github.com/richelbilderbeek/tidyverse_singularity
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
Rscript -e 'install.packages(c("remotes", "devtools"))'
Rscript -e 'remotes::install_github("ropensci/beautier")'
%runscript
echo "'beautier.sif' running with arguments '$@'"
exec "$@"
%test
Rscript -e 'beautier::get_beautier_folder()'
%help
This container has the R package beautier installed.
To make the container run a script called, e.g. `script.R`, do:
```
cat script.R | ./plinkr.sif
```
```
library(beautier)
# Get an example FASTA file
input_filename <- get_fasta_filename()
# The file created by beautier, a BEAST2 input file
output_filename <- get_beautier_tempfilename()
# Use the default BEAUti settings to create a BEAST2 input file
create_beast2_input_file_from_model(
input_filename,
output_filename,
inference_model = create_inference_model()
)
readLines(output_filename)
file.remove(output_filename)
```
%labels
AUTHOR Richel J.C. Bilderbeek
NAME beautier
DESCRIPTION The beautier R package
USAGE simply run the container
URL https://github.com/ropensci/beautier
VERSION 2.6.9