about summary refs log tree commit diff
path: root/scripts/insert_samples.py
diff options
context:
space:
mode:
authorpi coding agent <pi@localhost>2026-10-15 20:44:47 +0000
committerFrederick Muriuki Muriithi <fredmanglis@gmail.com>2026-10-15 15:58:42 -0500
commite67ce3f2a7e707e38806475b5886d84b77391080 (patch)
tree181d312dd9e4ba11602cfeaad7f4ecbe7fc6a6ef /scripts/insert_samples.py
parent52d72868086c2f0860eaf1417599e3d740f2407b (diff)
downloadgn-uploader-e67ce3f2a7e707e38806475b5886d84b77391080.tar.gz
Add chunk statistics merge helpers
Add `_merge_chunk_stats` to combine the statistics from two consecutive
chunks of a file while preserving file order, and `_merge_all_chunk_stats`
to fold an iterable of chunk statistics into a single value.

For transposed files, the markers of the last markers line win, falling back
to the earlier chunk when a later chunk saw no markers line. For
untransposed files, the markers are concatenated in order. Counters are
summed, genotype symbols are unioned, dot-geno fields are combined (later
values override earlier ones) and errors are concatenated in order.
Diffstat (limited to 'scripts/insert_samples.py')
0 files changed, 0 insertions, 0 deletions