diff options
| author | Arun Isaac | 2026-01-27 21:52:00 +0000 |
|---|---|---|
| committer | Arun Isaac | 2026-01-27 21:52:00 +0000 |
| commit | 572242b659219456275bcdd254f65929af96dc35 (patch) | |
| tree | 2f2bb4be51f74d1656b32f2ec0ab4669db3d1b5c | |
| parent | d6f0caec53f0396fccfc40866255d2f8a22003fe (diff) | |
| download | pyhegp-572242b659219456275bcdd254f65929af96dc35.tar.gz pyhegp-572242b659219456275bcdd254f65929af96dc35.tar.lz pyhegp-572242b659219456275bcdd254f65929af96dc35.zip | |
Recognize "intercept" as a phenotype metadata column.
| -rw-r--r-- | pyhegp/serialization.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pyhegp/serialization.py b/pyhegp/serialization.py index db1360a..4a8b7a2 100644 --- a/pyhegp/serialization.py +++ b/pyhegp/serialization.py @@ -1,5 +1,5 @@ ### pyhegp --- Homomorphic encryption of genotypes and phenotypes -### Copyright © 2025 Arun Isaac <arunisaac@systemreboot.net> +### Copyright © 2025–2026 Arun Isaac <arunisaac@systemreboot.net> ### ### This file is part of pyhegp. ### @@ -96,7 +96,7 @@ def read_genotype(file): return df def is_phenotype_metadata_column(name): - return name.lower() == "sample-id" + return name.lower() in ["sample-id", "intercept"] def read_phenotype(file): df = read_tsv(file, {"sample-id": "str"}) |
