forked from BenjaminSchwessinger/NCI_setup_help
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathguppy_installer_NCI.sh
46 lines (34 loc) · 1.29 KB
/
guppy_installer_NCI.sh
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
#!/bin/bash
# Settings
# Ensure all paths are writable (and absolute, unless you're sure of what
# you're doing)
# Caution: Assumes that Guppy is packaged as an "ont-guppy" folder and that
# executables are in the "ont-guppy/bin" folder
# (ONT may change this in the future)
# Copy link from the "Linux 64-bit GPU" download button in Community
# https://community.nanoporetech.com/downloads
guppyURL=https://mirror.oxfordnanoportal.com/software/analysis/ont-guppy_3.3.0_linux64.tar.gz
# Path to guppy folder install
# (creates "ont-guppy" folder in this path)
# (and downloads initial .tar to this folder)
# Use trailing /
guppyInstallPath=/g/data/xe2/opt/apps/guppy330/
# Path to guppy module file
# (creates a new module file at this location)
guppyModule=/g/data/xe2/opt/modules/guppy/3.3.0
mkdir -p $guppyInstallPath
cd $guppyInstallPath
wget $guppyURL
# ${guppyURL##*/} should just get the filename e.g. ont-guppy_3.3.0_linux64.tar.gz
tar -xvf ${guppyURL##*/}
rm ${guppyURL##*/}
cat <<EOT > $guppyModule
#%Module######################################################################
source /opt/Modules/extensions/extensions.tcl
proc ModulesHelp { } {
global version
puts stderr "Provides guppy"
}
module-whatis "guppy basecaller"
prepend-path PATH ${guppyInstallPath}ont-guppy/bin
EOT