about summary refs log tree commit diff
path: root/test-data/pool-test-summary2
diff options
context:
space:
mode:
authorArun Isaac2025-08-06 19:01:04 +0100
committerArun Isaac2025-08-06 22:46:15 +0100
commit6de3e6bf27d1abebb98d6f841af70cd617e81dd0 (patch)
tree8039a5589a279257a0fc0735df31561f9c0d4c66 /test-data/pool-test-summary2
parentbc046a25f1531386293a470e21b569f8411f2235 (diff)
downloadpyhegp-6de3e6bf27d1abebb98d6f841af70cd617e81dd0.tar.gz
pyhegp-6de3e6bf27d1abebb98d6f841af70cd617e81dd0.tar.lz
pyhegp-6de3e6bf27d1abebb98d6f841af70cd617e81dd0.zip
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.
Diffstat (limited to 'test-data/pool-test-summary2')
-rw-r--r--test-data/pool-test-summary27
1 files changed, 7 insertions, 0 deletions
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