Skip to content

Commit

Permalink
Make sure that IID isn't converted to numeric during aggreation
Browse files Browse the repository at this point in the history
Signed-off-by: smlmbrt <[email protected]>
  • Loading branch information
smlmbrt committed Dec 15, 2023
1 parent 6da7eb0 commit bb1db86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pgscatalog_utils/aggregate/aggregate_scores.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def aggregate(scorefiles: list[str]):
for i, path in enumerate(scorefiles):
logger.debug(f"Reading {path}")
# pandas can automatically detect zst compression, neat!
df = (pd.read_table(path)
df = (pd.read_table(path, converters={"#IID": str}, header=0)
.assign(sampleset=path.split('_')[0])
.set_index(['sampleset', '#IID']))

Expand Down

0 comments on commit bb1db86

Please sign in to comment.