Commit 2af4510e authored by Mathieu Courcelles's avatar Mathieu Courcelles

Fixes file open

parent fc3806e5
Pipeline #14897458 passed with stage
in 1 minute and 13 seconds
......@@ -28,7 +28,7 @@ class QuantFC_Parser:
"""
try:
with open(quantification.file.path, 'rb') as f:
with open(quantification.file.path, 'r') as f:
# Create CSV reader
reader = csv.DictReader(f)
......
......@@ -30,7 +30,7 @@ class XiParser:
sM = sequencesMatcher(dataset.fasta_db.pk)
try:
with open(dataset.file.path, 'rb') as f:
with open(dataset.file.path, 'r') as f:
# Skip line to header
filters_string = f.readline()
......
......@@ -36,7 +36,7 @@ class XlinkXParser:
sM = sequencesMatcher(dataset.fasta_db.pk)
try:
with open(dataset.file.path, 'rb') as f:
with open(dataset.file.path, 'r') as f:
# Check header to validate file format
line = f.readline().rstrip('\n\r')
......
......@@ -72,7 +72,7 @@ class MascotParser:
sM = sequencesMatcher(dataset.fasta_db.pk)
try:
with open(dataset.file.path, 'rb') as f:
with open(dataset.file.path, 'r') as f:
# Skip line to variable modification
line = f.readline()
......
......@@ -87,7 +87,7 @@ class MGFParser(object):
:return: Generator that yield a scan dictionary
"""
with open(self.file_name, 'rb') as self.fh:
with open(self.file_name, 'r') as self.fh:
scan = ''
......
......@@ -46,7 +46,7 @@ class pLinkParser:
if dataset.extra_file:
with open(dataset.extra_file.path, 'rb') as f:
with open(dataset.extra_file.path, 'r') as f:
# Create CSV reader
reader = csv.DictReader(f, delimiter='\t')
......
......@@ -49,7 +49,7 @@ class xQuestParser:
sM = sequencesMatcher(dataset.fasta_db.pk)
try:
with open(dataset.file.path, 'rb') as f:
with open(dataset.file.path, 'r') as f:
# Create CSV reader
reader = csv.DictReader(f, delimiter='\t')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment