Skip to content

Commit f2891ca

Browse files
committed
fix: correctly parse and load variant fields (skip duplicates)
1 parent 27bffe1 commit f2891ca

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

python/genvarloader/_dataset/_impl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -739,7 +739,7 @@ def shape(self) -> tuple[int, int]:
739739

740740
@property
741741
def full_shape(self) -> tuple[int, int]:
742-
"""Return the full shape of the dataset, ignoring any subsetting. :code:`(n_samples, n_regions)`"""
742+
"""Return the full shape of the dataset, ignoring any subsetting. :code:`(n_regions, n_samples)`"""
743743
return self._idxer.full_shape
744744

745745
@property

python/genvarloader/_dataset/_reconstruct.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def from_table(cls, path: str | Path, one_based: bool = True):
8080
info = {
8181
k: variants[k].to_numpy()
8282
for k, v in variants.schema.items()
83-
if v.is_numeric()
83+
if v.is_numeric() and k not in {"POS", "ILEN"}
8484
}
8585

8686
ref = (

0 commit comments

Comments
 (0)