diff --git a/pgscatalog_utils/__init__.py b/pgscatalog_utils/__init__.py index 0404d81..e1424ed 100644 --- a/pgscatalog_utils/__init__.py +++ b/pgscatalog_utils/__init__.py @@ -1 +1 @@ -__version__ = '0.3.0' +__version__ = '0.3.1' diff --git a/pgscatalog_utils/match/read.py b/pgscatalog_utils/match/read.py index 43ed39b..392c9cf 100644 --- a/pgscatalog_utils/match/read.py +++ b/pgscatalog_utils/match/read.py @@ -28,6 +28,7 @@ def read_scorefile(path: str, chrom: typing.Union[str, None]) -> pl.LazyFrame: 'chr_position': pl.UInt64, 'effect_allele': pl.Utf8, # str functions required to complement 'other_allele': pl.Utf8, + 'effect_weight': pl.Float64, 'effect_type': pl.Categorical, 'accession': pl.Categorical} diff --git a/pgscatalog_utils/match/write.py b/pgscatalog_utils/match/write.py index b5251c1..0ab7742 100644 --- a/pgscatalog_utils/match/write.py +++ b/pgscatalog_utils/match/write.py @@ -68,7 +68,7 @@ def _check_column_types(matches: pl.LazyFrame): 'matched_effect_allele': pl.Categorical, 'effect_weight': pl.Float64, 'effect_type': pl.Categorical, 'accession': pl.Categorical} col_types = {x: matches.schema.get(x) for x in list((matches.schema.keys() & correct_schema.keys()))} - assert col_types == correct_schema + assert col_types == correct_schema, "MISMATCHED SCHEMA\nCurrent columns: {}\nCorrect schema:{}".format(col_types, correct_schema) def _write_split(deduplicated: dict[str: tuple[int, pl.LazyFrame]], chrom: str, dataset: str): diff --git a/pyproject.toml b/pyproject.toml index 3fc9cbb..608e709 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "pgscatalog_utils" -version = "0.3.0" +version = "0.3.1" description = "Utilities for working with PGS Catalog API and scoring files" homepage = "https://github.com/PGScatalog/pgscatalog_utils" authors = ["Benjamin Wingfield ", "Samuel Lambert ", "Laurent Gil "]