-
Notifications
You must be signed in to change notification settings - Fork 0
/
Singularity.1.0
70 lines (58 loc) · 1.79 KB
/
Singularity.1.0
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
Bootstrap: docker
from: ubuntu:bionic
%labels
maintainer Bertrand Neron <[email protected]>
package.name craw
package.version 1.0
package.homepage https://gitlab.pasteur.fr/bneron/craw
package.license GPLv3
%post
####################################
# Installing system #
####################################
apt-get update -y
apt-get install -y --no-install-recommends python3 python3-tk
apt-get install -y git
apt-get install -y python3-pip
#################################
# installing craw #
#################################
pip3 install craw==1.0
#################################
# cleaning image #
#################################
apt-get purge -y git
apt-get autoremove -y
apt-get clean -y
%test
mkdir /test_craw
cd /test_craw
pip3 download --no-deps craw==1.0.0
tar -xzf craw-1.0.0.tar.gz
/usr/bin/python3 craw-1.0.0/tests/run_tests.py -vv
cd /
rm -Rf /test_craw
%help
This singularity image contains the Counter RNAseq Window (CRAW) package.
Two commands are available \"coverage\" and \"htmp\.
To run command:
./craw.img [coverage|htmp] [options]... [args]... .
To get help about each command ./craw.img [coverage|htmp] --help.
The detailed documentation is accessible here: http://bneron.pages.pasteur.fr/craw/
%runscript
# the following syntax allow to get the command and args
# in POSIX manner so compliant with dash which
# is the debian/ubuntu /bin/sh shell
CMD="$1"
shift
ARGS=${@}
case ${CMD} in
coverage )
exec /usr/local/bin/craw_coverage ${ARGS} ;;
htmp )
exec /usr/local/bin/craw_htmp ${ARGS} ;;
* )
echo "command \"${CMD}\" is not supported. available commands: \"coverage\"|\"htmp\""
exit 127
;;
esac