-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSTAR_2_4_0e.py
executable file
·15 lines (13 loc) · 986 Bytes
/
STAR_2_4_0e.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 STARInstaller(ClusterSetup):
def run(self, nodes, master, user, user_shell, volumes):
for node in nodes:
log.info("Installing STAR 2.4.0e on %s" % (node.alias))
node.ssh.execute('wget -c -P /opt/software/star https://github.com/alexdobin/STAR/archive/STAR_2.4.0e.tar.gz')
node.ssh.execute('tar -xzf /opt/software/star/STAR_2.4.0e.tar.gz -C /opt/software/star')
node.ssh.execute('make STAR -C /opt/software/star/STAR-STAR_2.4.0e/source')
node.ssh.execute('mkdir -p /usr/local/Modules/applications/star/;touch /usr/local/Modules/applications/star/2.4.0e')
node.ssh.execute('echo "#%Module" >> /usr/local/Modules/applications/star/2.4.0e')
node.ssh.execute('echo "set root /opt/software/star/STAR-STAR_2.4.0e" >> /usr/local/Modules/applications/star/2.4.0e')
node.ssh.execute('echo -e "prepend-path\tPATH\t\$root/source" >> /usr/local/Modules/applications/star/2.4.0e')