diff options
author | Arun Isaac | 2025-08-04 12:52:39 +0100 |
---|---|---|
committer | Arun Isaac | 2025-08-06 22:40:41 +0100 |
commit | bcdb235949c06db07172b0c6355a0059436b86fb (patch) | |
tree | ef2a4ab4ea6d3da60a894b50eb7a2470021852f1 /.guix | |
parent | 2dc2efa7f77deb5ebcf7b80abefc162474614b2c (diff) | |
download | pyhegp-bcdb235949c06db07172b0c6355a0059436b86fb.tar.gz pyhegp-bcdb235949c06db07172b0c6355a0059436b86fb.tar.lz pyhegp-bcdb235949c06db07172b0c6355a0059436b86fb.zip |
Standardize file formats in the likeness of plink files.
* pyhegp/pyhegp.py: Import pandas. (summary, pool, encrypt, cat): Use pandas data frames and new data format. * pyhegp/serialization.py: Import csv and pandas. (Summary)[mean, std]: Delete fields. [data]: New field. (read_summary, write_summary, read_genotype, write_genotype): Use pandas data frames and new data format. * tests/test_serialization.py: Import column, columns and data_frames from hypothesis.extra.pandas; pandas; negate from pyhegp.utils. Do not import hypothesis.extra.numpy and approx from pytest. (tabless_printable_ascii_text, chromosome_column, position_column, reference_column, sample_names): New variables. (summaries, genotype_reserved_column_name_p, genotype_frames): New functions. (test_read_write_summary_are_inverses): Use pandas data frames and new data format. (test_read_write_genotype_are_inverses): Use pandas for testing. * doc/file-formats.md (File formats)[summary file]: Describe new standard. [genotype file]: New section. * .guix/pyhegp-package.scm (pyhegp-package): Import python-pandas from (gnu packages python-science). (python-pyhegp)[propagated-inputs]: Add python-pandas. * pyproject.toml (dependencies): Add pandas.
Diffstat (limited to '.guix')
-rw-r--r-- | .guix/pyhegp-package.scm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/.guix/pyhegp-package.scm b/.guix/pyhegp-package.scm index cf132c5..6778e38 100644 --- a/.guix/pyhegp-package.scm +++ b/.guix/pyhegp-package.scm @@ -20,7 +20,7 @@ #:use-module ((gnu packages check) #:select (python-hypothesis-next)) #:use-module ((gnu packages check) #:select (python-pytest) #:prefix guix:) #:use-module ((gnu packages python-build) #:select (python-flit-core)) - #:use-module ((gnu packages python-science) #:select (python-scipy)) + #:use-module ((gnu packages python-science) #:select (python-pandas python-scipy)) #:use-module ((gnu packages python-xyz) #:select (python-click python-numpy)) #:use-module (guix build-system pyproject) #:use-module (guix gexp) @@ -53,6 +53,7 @@ (propagated-inputs (list python-click python-numpy + python-pandas python-scipy)) (home-page "https://github.com/encryption4genetics/pyhegp") (synopsis "Homomorphic encryption of genotypes and phenotypes") |