diff pre_sartools.py @ 4:05c9b1a7f44e draft default tip

Uploaded new release 1.7.3
author lgueguen
date Thu, 07 Jan 2021 11:12:01 +0000
parents fe0ee346b17d
children
line wrap: on
line diff
--- a/pre_sartools.py	Mon Oct 01 05:07:56 2018 -0400
+++ b/pre_sartools.py	Thu Jan 07 11:12:01 2021 +0000
@@ -51,8 +51,8 @@
             filename_base = basename(filename)
             # For RSEM files we process files as HTSeq count output
             tmpdir = tempfile.mkdtemp()
-            with open(filename, 'rb') as csvfile:
-                with open(join(tmpdir, basename(filename)), 'wb') as out:
+            with open(filename, 'rt') as csvfile:
+                with open(join(tmpdir, basename(filename)), 'wt') as out:
                     spamwriter = csv.writer(out, delimiter='\t')
                     reader = csv.DictReader(csvfile, delimiter='\t', skipinitialspace=True)
                     if len(reader.fieldnames) > 2: