-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPicard_1_121.py
executable file
·15 lines (13 loc) · 1.02 KB
/
Picard_1_121.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
from starcluster.clustersetup import ClusterSetup
from starcluster.logger import log
class PicardInstaller(ClusterSetup):
def run(self, nodes, master, user, user_shell, volumes):
for node in nodes:
log.info("Installing Picard tools 1.121 on %s" % (node.alias))
node.ssh.execute('wget -c -P /opt/software/picard https://github.com/broadinstitute/picard/releases/download/1.121/picard-tools-1.121.zip')
node.ssh.execute('unzip -d /opt/software/picard /opt/software/picard/picard-tools-1.121.zip')
node.ssh.execute('find /opt/software/picard/picard-tools-1.121/*.jar -exec chmod 755 {} +')
node.ssh.execute('mkdir -p /usr/local/Modules/applications/picard/;touch /usr/local/Modules/applications/picard/1.121')
node.ssh.execute('echo "#%Module" >> /usr/local/Modules/applications/picard/1.121')
node.ssh.execute('echo "set root /opt/software/picard/picard-tools-1.121" >> /usr/local/Modules/applications/picard/1.121')
node.ssh.execute('echo -e "prepend-path\tPATH\t\$root" >> /usr/local/Modules/applications/picard/1.121')