diff options
| author | pi coding agent <pi@localhost> | 2026-10-15 20:44:47 +0000 |
|---|---|---|
| committer | Frederick Muriuki Muriithi <fredmanglis@gmail.com> | 2026-10-15 15:58:42 -0500 |
| commit | e67ce3f2a7e707e38806475b5886d84b77391080 (patch) | |
| tree | 181d312dd9e4ba11602cfeaad7f4ecbe7fc6a6ef /uploader/scripts/cli_parser.py | |
| parent | 52d72868086c2f0860eaf1417599e3d740f2407b (diff) | |
| download | gn-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 'uploader/scripts/cli_parser.py')
0 files changed, 0 insertions, 0 deletions
