Commits

jianma committed be9e5b5

fix expression tools.

Comments (0)

Files changed (2)

tools/expression/eiplot.py

     f.close()      
    
     #find sample_name & remove if doubel quotes
-    header_line =  string.strip(exprFilelines[0], '\n')
+    header_line =  string.strip(exprFilelines[0])
 
     samples = []
-    x_re = re.compile(r'" "')
+    x_re = re.compile(r'\t')
     headerItems = x_re.split(header_line)
 
     for (sample) in headerItems:

tools/expression/eiplot_code.py

     f = file(fileName, 'r')
     sampleData = f.readlines()
     f.close()
-    header = string.strip(sampleData[0], '\n')
+    header = string.strip(sampleData[0])
     i = 0
     samples = []
 
-    x_re = re.compile(r'" "')
+    x_re = re.compile(r'\t')
     headerItems = x_re.split(header)
 
     for (sample) in headerItems: