Skip to content

Commit 351c665

Browse files
authored
Merge pull request #48 from bbglab/fix/47-windows-input-files-not-parsed-properly
fix: replace newline removal with rstrip for better line handling
2 parents d59d609 + 1768352 commit 351c665

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

openvariant/variant/variant.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def _base_parser(mm_obj: mmap, file_path: str, delimiter: str, skip_files: bool)
5050
for l_num, line in enumerate(iter(mm_obj.readline, b'')):
5151
line = line.decode('utf-8')
5252
row_line = line.split(AnnotationDelimiter[delimiter].value)
53-
row_line = list(map(lambda w: w.replace("\n", ""), row_line))
53+
row_line = list(map(lambda w: w.rstrip("\r\n"), row_line))
5454

5555
if len(row_line) == 0:
5656
continue

0 commit comments

Comments
 (0)