# HG changeset patch # User melissacline # Date 1426011416 25200 # Node ID 5d4538cb38db7b6c29bf968091af5162fe8b8c83 # Parent 1d150e860c4db287f6819843e5b6ef05ed742a42 When opening files for reading, changed the open() mode from 'r' to 'U' to accommodate non-unix systems diff -r 1d150e860c4d -r 5d4538cb38db mergeGenomicMatrixFiles.py --- 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')