aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
5 daysDocument usage instructions and workflow.Arun Isaac
* doc/workflow.uml, doc/workflow.png, doc/generate-images.sh: New files. * README.md (How to use): New section.
5 daysAdd development version installation instructions.Arun Isaac
* README.md (Install development version): New section.
5 daysAdd cat subcommand.Arun Isaac
* pyhegp/pyhegp.py (cat): New function.
5 daysOnly output key optionally.Arun Isaac
* pyhegp/pyhegp.py (encrypt): Only output key to file optionally.
5 daysUse File instead of Path for encrypt subcommand options.Arun Isaac
* pyhegp/pyhegp.py (encrypt): Use File instead of Path for options.
5 daysTurn arguments of the encrypt subcommand into options.Arun Isaac
Prefixed options are easier to follow than the order of positional arguments. * pyhegp/pyhegp.py (encrypt): Turn summary, key and ciphertext arguments into options.
5 daysMove read_genotype to pyhegp.serialization.Arun Isaac
* pyhegp/pyhegp.py: Import read_genotype from pyhegp.serialization. (read_genotype): Move to pyhegp.serialization.
5 daysStandardize before encryption.Arun Isaac
* pyhegp/pyhegp.py (hegp_encrypt): Standardize before encryption. (hegp_decrypt): Unstandardize after decryption. (encrypt): Pass in mean and standard deviation from summary file to hegp_encrypt. * tests/test_pyhegp.py (test_hegp_encryption_decryption_are_inverses): Pass in mean and standard deviation to hegp_encrypt.
5 daysAdd standardization.Arun Isaac
* pyhegp/pyhegp.py (standardize): Standardize using mean and standard deviation, instead of the minor allele frequency. (unstandardize): New function. * tests/test_pyhegp.py: Import standardize and unstandardize from pyhegp.pyhegp. (no_column_zero_standard_deviation): New function. (test_standardize_unstandardize_are_inverses): New test.
5 daysAdd pool subcommand.Arun Isaac
* pyhegp/pyhegp.py: Import namedtuple from collections, and read_summary from pyhegp.serialization. (Stats): New type. (pool_stats, pool): New functions. * tests/test_pyhegp.py: Import Stats and pool_stats from pyhegp.pyhegp. (test_pool_stats): New test.
5 daysAdd summary subcommand.Arun Isaac
* pyhegp/pyhegp.py: Import Summary and write_summary from pyhegp.serialization. (summary): New function.
5 daysImplement the summary file format.Arun Isaac
* doc/file-formats.md, pyhegp/serialization.py, tests/test_serialization.py: New files.
5 daysRemove decrypt subcommand.Arun Isaac
Decryption does not make much sense with HEGP. And, the added complexity of standardization makes it even less attractive. * pyhegp/pyhegp.py (decrypt): Delete function.
5 daysUse python-pytest built with python-hypothesis-next.Arun Isaac
* .guix/pyhegp-package.scm: Import python-pytest with guix: prefix. (python-pytest): New variable.
6 daysUse default array shapes testing encryption/decryption.Arun Isaac
It may be better to sample a smaller set of matrices finely than a large set of matrices coarsely. * tests/test_pyhegp.py (test_hegp_encryption_decryption_are_inverses): Use default array shapes testing encryption/decryption.
6 daysReduce maximum matrix size testing encryption/decryption.Arun Isaac
* tests/test_pyhegp.py (test_hegp_encryption_decryption_are_inverses): Reduce maximum matrix size to 100.
6 daysOrganize source into directory structure.Arun Isaac
* pyhegp/__init__.py: New file. * pyhegp.py: Move to pyhegp/pyhegp.py. * test_pyhegp.py: Move to tests/test_pyhegp.py. Import from pyhegp.pyhegp instead of from pyhegp. * pyproject.toml (project.scripts)[pyhegp]: Switch to pyhegp.pyhegp:main.
6 daysUse python-hypothesis-next.Arun Isaac
* guix.scm: Import python-hypothesis-next instead of python-hypothesis. (python-pyhegp)[native-inputs]: Replace python-hypothesis with python-hypothesis-next.
2025-07-08Correct symlink to guix package file.Arun Isaac
* guix.scm: Link to .guix/pyhegp-package.scm instead of .guix/pyhegp-project.scm.
2025-07-08Remove obsolete commented out code.Arun Isaac
* pyhegp.py (read_genotype): Remove obsolete commented out code.
2025-07-07Make repo a guix channel.Arun Isaac
* .guix-channel: New file. * guix.scm: Move to ... * .guix/pyhegp-package.scm: ... here as its own module. * guix.scm: Link to .guix/pyhegp-package.scm.
2025-07-07Add tests.Arun Isaac
* test_pyhegp.py: New file. * README.md (Run tests): New section. * guix.scm: Import python-hypothesis from (gnu packages check). (python-pyhegp)[arguments]: Enable tests. [native-inputs]: Add python-hypothesis.
2025-06-27README: Add missing preposition "in".Arun Isaac
* README.md: Add missing preposition "in".
2025-06-27Initial commitArun Isaac