diff options
author | Frederick Muriuki Muriithi | 2024-08-16 13:26:31 -0500 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2024-08-16 13:27:32 -0500 |
commit | 5ee7e90844b16ff132278c6deb65a2b79ae95581 (patch) | |
tree | e4de38f47d1fe30369884a88c23a9c357e01681f /r_qtl | |
parent | 3c74277f8063f01bb63836c763507a8d64869f46 (diff) | |
download | gn-uploader-5ee7e90844b16ff132278c6deb65a2b79ae95581.tar.gz |
Ignore comment lines.
Diffstat (limited to 'r_qtl')
-rw-r--r-- | r_qtl/r_qtl2.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/r_qtl/r_qtl2.py b/r_qtl/r_qtl2.py index 9da4081..3d02977 100644 --- a/r_qtl/r_qtl2.py +++ b/r_qtl/r_qtl2.py @@ -72,6 +72,8 @@ def transpose_csv( def __read_by_line__(_path): with open(_path, "r", encoding="utf8") as infile: for line in infile: + if line.startswith("#"): + continue yield line transposed_data= (f"{linejoinerfn(items)}\n" for items in zip(*( |