From 6de3e6bf27d1abebb98d6f841af70cd617e81dd0 Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Wed, 6 Aug 2025 19:01:04 +0100 Subject: Subset to common SNPs. * pyhegp/pyhegp.py: Import reduce from functools. (pool_summaries, encrypt_genotype): New functions. (pool): Use pool_summaries. (encrypt): Use encrypt_genotype. * tests/test_pyhegp.py: Import pandas; Summary, read_summary and read_genotype from pyhegp.serialization. (test_pool, test_encrypt): New tests. * test-data/encrypt-test-encrypted-genotype.tsv, test-data/encrypt-test-genotype.tsv, test-data/encrypt-test-key, test-data/encrypt-test-summary, test-data/pool-test-complete-summary, test-data/pool-test-summary1, test-data/pool-test-summary2: New files. --- test-data/pool-test-summary2 | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 test-data/pool-test-summary2 (limited to 'test-data/pool-test-summary2') diff --git a/test-data/pool-test-summary2 b/test-data/pool-test-summary2 new file mode 100644 index 0000000..11c02d1 --- /dev/null +++ b/test-data/pool-test-summary2 @@ -0,0 +1,7 @@ +# pyhegp summary file version 1 +# number-of-samples 5 +chromosome position reference mean standard-deviation +chr1 1 A 0 1 +chr2 19 G 2 3 +chrX 21 C 4 5 +chrX 21 T 4 5 -- cgit 1.4.1