Skip to content
This repository has been archived by the owner on Jan 21, 2025. It is now read-only.

Commit

Permalink
Merge pull request #75 from PGScatalog/65-read-iids-as-text
Browse files Browse the repository at this point in the history
Continued fixes re: numeric IDs
  • Loading branch information
nebfield authored Dec 15, 2023
2 parents 6da7eb0 + bb1db86 commit 7782112
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 7782112

Please sign in to comment.