diff options
author | Frederick Muriuki Muriithi | 2024-08-16 13:26:31 -0500 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2024-10-17 11:34:21 -0500 |
commit | bd95cedb92aaf04f1ca0b02224bfdf4af21d489a (patch) | |
tree | eec64b18abaa5a2e3703b5fde14e2585f235e46d | |
parent | bacb21f34e1912c657d93a4fb1474664300b7ba7 (diff) | |
download | gn-uploader-bd95cedb92aaf04f1ca0b02224bfdf4af21d489a.tar.gz |
Ignore comment lines.
-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 d7d81d1..ad9271c 100644 --- a/r_qtl/r_qtl2.py +++ b/r_qtl/r_qtl2.py @@ -76,6 +76,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(*( |