annotate maaslin_wrapper.py @ 0:e0b5980139d9

maaslin
author george-weingart
date Tue, 13 May 2014 22:00:40 -0400
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
1 #!/usr/bin/env python
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
2
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
3 """
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
4 Author: George Weingart
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
5 Description: Wrapper program for maaslin
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
6 """
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
7
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
8 #####################################################################################
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
9 #Copyright (C) <2012>
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
10 #
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
11 #Permission is hereby granted, free of charge, to any person obtaining a copy of
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
12 #this software and associated documentation files (the "Software"), to deal in the
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
13 #Software without restriction, including without limitation the rights to use, copy,
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
14 #modify, merge, publish, distribute, sublicense, and/or sell copies of the Software,
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
15 #and to permit persons to whom the Software is furnished to do so, subject to
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
16 #the following conditions:
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
17 #
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
18 #The above copyright notice and this permission notice shall be included in all copies
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
19 #or substantial portions of the Software.
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
20 #
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
21 #THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
22 #INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
23 #PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
24 #HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
25 #OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
26 #SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
27 #####################################################################################
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
28
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
29 __author__ = "George Weingart"
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
30 __copyright__ = "Copyright 2012"
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
31 __credits__ = ["George Weingart"]
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
32 __license__ = "MIT"
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
33 __maintainer__ = "George Weingart"
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
34 __email__ = "george.weingart@gmail.com"
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
35 __status__ = "Development"
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
36
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
37 from cStringIO import StringIO
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
38 import sys,string
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
39 import os
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
40 import tempfile
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
41 from pprint import pprint
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
42 import argparse
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
43
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
44 ######################################################################################
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
45 # Parse input parms #
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
46 ######################################################################################
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
47 def read_params(x):
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
48 parser = argparse.ArgumentParser(description='MaAsLin Argparser')
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
49 parser.add_argument('--lastmeta', action="store", dest='lastmeta',nargs='?')
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
50 parser.add_argument('--input', action="store", dest='input',nargs='?')
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
51 parser.add_argument('--output', action="store", dest='output',nargs='?')
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
52 parser.add_argument('--zip_file', action="store", dest='zip_file',nargs='?')
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
53 parser.add_argument('--alpha', action="store", type=float,default=0.05,dest='alpha',nargs='?')
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
54 parser.add_argument('--min_abd', action="store", type=float,default=0.0001,dest='min_abd',nargs='?')
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
55 parser.add_argument('--min_samp', action="store", type=float,default=0.01,dest='min_samp',nargs='?')
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
56 parser.add_argument('--tool_option1', action="store", dest='tool_option1',nargs='?')
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
57 return parser
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
58
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
59
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
60
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
61 ######################################################################################
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
62 # Build read config file #
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
63 ######################################################################################
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
64 def build_read_config_file(strTempDir,results, DSrc, DMaaslin, root_dir):
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
65 fname = results.input
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
66 input_file = open(fname)
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
67 input_lines = input_file.readlines()
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
68 LenInput = len(input_lines)
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
69 input_file.close()
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
70 TopLimit = int(results.lastmeta)
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
71 ReadConfigFileName = os.path.join(strTempDir,"Test.read.config")
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
72 Q = "'"
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
73
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
74 #WorkingDir = os.getcwd()
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
75 WorkingDir = root_dir
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
76 os.chdir(DMaaslin)
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
77
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
78 Limit1 = Q + "2-" + str(TopLimit ) + Q
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
79 ReadConfigTb1 = [
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
80 os.path.join(DSrc,"CreateReadConfigFile.R"),
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
81 "-c",
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
82 Limit1,
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
83 ReadConfigFileName,
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
84 "Metadata"
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
85 ">/dev/null",\
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
86 "2>&1"
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
87 ]
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
88
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
89 cmd_config1 = " ".join(ReadConfigTb1)
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
90
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
91 os.system(cmd_config1)
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
92
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
93 Limit2 = Q + str(TopLimit +1 ) + '-' + Q
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
94 ReadConfigTb2 = [
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
95 os.path.join(DSrc,"CreateReadConfigFile.R"),
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
96 "-a",
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
97 "-c",
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
98 Limit2,
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
99 ReadConfigFileName,
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
100 "Abundance"
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
101 ">/dev/null",\
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
102 "2>&1"
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
103 ]
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
104
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
105 cmd_config2 = " ".join(ReadConfigTb2)
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
106 os.system(cmd_config2)
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
107 os.chdir(WorkingDir)
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
108 return ReadConfigFileName
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
109
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
110
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
111 ######################################################################################
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
112 # Main Program #
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
113 ######################################################################################
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
114
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
115 # Parse commandline in
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
116 parser = read_params( sys.argv )
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
117 results = parser.parse_args()
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
118 root_dir = os.environ.get('maaslin_SCRIPT_PATH')
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
119
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
120
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
121
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
122
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
123
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
124
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
125 ### If option 2 is selected inform user on 2 outputs
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
126 if results.tool_option1 == "2":
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
127 print "***Please note: 2 output files are generated: Complete zipped results + Summary ***"
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
128
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
129 ### Project name
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
130 strProjectName = os.path.splitext(os.path.basename(results.input))[0]
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
131
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
132 ### Define directory locations
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
133 D = os.path.join(root_dir)
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
134 DSrc = os.path.join(root_dir,"src")
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
135 DInput = os.path.join(root_dir,"maaslin","input")
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
136 DMaaslin = os.path.join(root_dir)
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
137
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
138 DMaaslinGalaxy = os.path.join(root_dir)
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
139
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
140
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
141
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
142 ### Make temporary folder to work in
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
143 ### Change permissions to make useable
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
144 strTempDir = tempfile.mkdtemp()
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
145 cmd_chmod = "chmod 755 /" + strTempDir
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
146 os.system(cmd_chmod)
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
147 cmd_mkdir1 = "mkdir -m 755 " + os.path.join(strTempDir,strProjectName)
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
148 os.system(cmd_mkdir1)
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
149
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
150 ### Transpose the pcl file to a tsv file
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
151 TbCmdTranspose = [\
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
152 "python",
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
153 DMaaslinGalaxy + "/transpose.py<" + str(results.input) + ">" + os.path.join(strTempDir,"output.tsv")\
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
154 ]
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
155 cmd_transpose = " ".join(TbCmdTranspose)
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
156 os.system(cmd_transpose)
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
157
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
158 ### Make path for target output file
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
159 OutputFile = os.path.join(strTempDir,strProjectName,strProjectName+".txt")
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
160
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
161 ### Make read config file
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
162 ReadConfigFileName = build_read_config_file(strTempDir,results, DSrc, DMaaslin, root_dir)
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
163
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
164 ### Build MaAsLin comamnd
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
165 CmdsArray = [\
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
166 os.path.join(DSrc,"Maaslin.R"), \
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
167 "-d", str(results.alpha),\
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
168 "-r", str(results.min_abd),\
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
169 "-p", str(results.min_samp), \
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
170 "-i", \
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
171 ReadConfigFileName, \
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
172 OutputFile, \
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
173 os.path.join(strTempDir,"output.tsv"), \
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
174 "-v",\
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
175 "ERROR",\
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
176 ">/dev/null",\
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
177 "2>&1"
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
178 ]
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
179
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
180 invoke_maaslin_cmd = " ".join(CmdsArray)
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
181
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
182
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
183
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
184
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
185
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
186 ### Write to directory cmd line used for troubleshooting
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
187 #CmdFileName = os.path.join(strTempDir,"cmdfile.txt")
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
188 #OutFile = open(CmdFileName,"w")
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
189 #OutputString = invoke_maaslin_cmd + "\n"
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
190 #OutFile.write(OutputString)
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
191 #OutFile.close()
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
192
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
193 ### Call MaAsLin
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
194 os.system(invoke_maaslin_cmd)
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
195
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
196
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
197 ### Copy output file to make available to galaxy
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
198 cmd_copy = "cp " + os.path.join(strTempDir,strProjectName+"/output.txt") + " " + results.output
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
199 MsgFileName = os.path.join(strTempDir,strProjectName+"/output.txt")
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
200
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
201 if not os.path.isfile(MsgFileName):
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
202 cmd_copy = "cp " + os.path.join(strTempDir,strProjectName+"/output.txt") + " " + results.output
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
203 OutFile = open(MsgFileName,"w")
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
204 OutputString = "A MaAsLin error has occurred\n"
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
205 OutputString = OutputString + "It typically happens when incorrect 'Last metadata row' was selected\n"
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
206 OutputString = OutputString + "For demo data please choose 'Weight'\n"
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
207 OutFile.write(OutputString)
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
208 OutFile.close()
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
209
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
210 os.system(cmd_copy)
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
211
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
212 ### Zip up output folder
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
213 cmd_zip = "zip -jr " + os.path.join(strTempDir,strProjectName+".zip") + " " + os.path.join(strTempDir,strProjectName) + ">/dev/null 2>&1"
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
214
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
215 os.system(cmd_zip)
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
216
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
217 ### Copy output folder to make available to galaxy
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
218 cmd_copy_zip = "cp " + os.path.join(strTempDir,strProjectName+".zip") + " " + results.zip_file
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
219 os.system(cmd_copy_zip)
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
220
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
221 ### Delete temp directory
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
222 cmd_del_tempdir = "rm -r " + strTempDir
e0b5980139d9 maaslin
george-weingart
parents:
diff changeset
223 ######os.system(cmd_del_tempdir)