-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMetaSV_0_3.py
14 lines (13 loc) · 932 Bytes
/
MetaSV_0_3.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
from starcluster.clustersetup import ClusterSetup
from starcluster.logger import log
class MetaSVInstaller(ClusterSetup):
def run(self, nodes, master, user, user_shell, volumes):
for node in nodes:
log.info("Installing MetaSV 0.3 on %s" % (node.alias))
node.ssh.execute('mkdir -p /opt/software/metasv/0.3')
node.ssh.execute('cd /opt/software/metasv/0.3 && git clone https://github.com/bioinform/metasv.git')
node.ssh.execute('cd /opt/software/metasv/0.3/metasv && python setup.py install')
node.ssh.execute('mkdir -p /usr/local/Modules/applications/metasv/;touch /usr/local/Modules/applications/metasv/0.3')
node.ssh.execute('echo "#%Module" >> /usr/local/Modules/applications/metasv/0.3')
node.ssh.execute('echo "set root /opt/software/metasv/metasv" >> /usr/local/Modules/applications/metasv/0.3')
node.ssh.execute('echo -e "prepend-path\tPATH\t\$root" >> /usr/local/Modules/applications/metasv/0.3')