diff options
Diffstat (limited to 'quality_control')
-rw-r--r-- | quality_control/parsing.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/quality_control/parsing.py b/quality_control/parsing.py index eb4c989..a4edb0f 100644 --- a/quality_control/parsing.py +++ b/quality_control/parsing.py @@ -66,8 +66,10 @@ def parse_file(filepath: str, filetype: FileType, strains: list): seek_pos = seek_pos + len(line) continue - yield LINE_PARSERS[filetype]( - tuple(field.strip() for field in line.split("\t"))) + yield ( + LINE_PARSERS[filetype]( + tuple(field.strip() for field in line.split("\t"))), + seek_pos + len(line)) seek_pos = seek_pos + len(line) except (DuplicateHeader, InvalidCellValue, InvalidHeaderValue) as err: raise ParseError({ |