-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVCFTools_0_1_12b.py
executable file
·16 lines (14 loc) · 1.17 KB
/
VCFTools_0_1_12b.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
from starcluster.clustersetup import ClusterSetup
from starcluster.logger import log
class VCFToolsInstaller(ClusterSetup):
def run(self, nodes, master, user, user_shell, volumes):
for node in nodes:
log.info("Installing vcftools 0.1.12b on %s" % (node.alias))
node.ssh.execute('wget -c -P /opt/software/vcftools http://sourceforge.net/projects/vcftools/files/vcftools_0.1.12b.tar.gz')
node.ssh.execute('tar xvzf /opt/software/vcftools/vcftools_0.1.12b.tar.gz -C /opt/software/vcftools/')
node.ssh.execute('cd /opt/software/vcftools/vcftools_0.1.12b && make')
node.ssh.execute('mkdir -p /usr/local/Modules/applications/vcftools/;touch /usr/local/Modules/applications/vcftools/0.1.12b')
node.ssh.execute('echo "#%Module" >> /usr/local/Modules/applications/vcftools/0.1.12b')
node.ssh.execute('echo "set root /opt/software/vcftools/vcftools_0.1.12b" >> /usr/local/Modules/applications/vcftools/0.1.12b')
node.ssh.execute('echo -e "prepend-path\tPATH\t\$root/bin" >> /usr/local/Modules/applications/vcftools/0.1.12b')
node.ssh.execute('echo -e "prepend-path\tPERL5LIB\t/opt/software/vcftools/vcftools_0.1.12b/perl/" >> /usr/local/Modules/applications/vcftools/0.1.12b')