Skip to content

Commit

Permalink
feat: Life&Brain
Browse files Browse the repository at this point in the history
  • Loading branch information
sandra-selfdecode authored Sep 25, 2023
1 parent d312ad6 commit a9dd7c8
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/snps/io/reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -1046,7 +1046,16 @@ def parser():
"Chr": NORMALIZED_DTYPES["chrom"],
},
)

if df.shape[1] == 1:
# Life&Brain uses "," as sep
df = pd.read_csv(
io.StringIO(data),
engine="c",
dtype={
"Position": NORMALIZED_DTYPES["pos"],
"Chr": NORMALIZED_DTYPES["chrom"],
},
)
# reserve columns we want out
assert "rsid" not in df.columns
assert "chrom" not in df.columns
Expand Down

0 comments on commit a9dd7c8

Please sign in to comment.