changeset 8:5d4538cb38db

When opening files for reading, changed the open() mode from 'r' to 'U' to accommodate non-unix systems
author melissacline
date Tue, 10 Mar 2015 11:16:56 -0700
parents 1d150e860c4d
children 30aab34424a9
files mergeGenomicMatrixFiles.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mergeGenomicMatrixFiles.py	Mon Mar 09 19:58:03 2015 -0700
+++ b/mergeGenomicMatrixFiles.py	Tue Mar 10 11:16:56 2015 -0700
@@ -8,7 +8,7 @@
         labelToUse = infile
     else:
         labelToUse = labelThisFile
-    fin= open(infile,'r')
+    fin= open(infile, 'U')
     #header, samples
     newSamples = string.split(string.strip(fin.readline()),'\t')[1:]
     for sample in newSamples:
@@ -21,7 +21,7 @@
 def process(genes, samples, dataMatrix, infile):
     maxLength= len(samples)
 
-    fin= open(infile,'r')
+    fin= open(infile,'U')
     #header 
     newSamples = string.split(string.strip(fin.readline()),'\t')