feat: scripts to get coverage across panel added

This commit is contained in:
2025-09-24 18:16:08 +02:00
parent d9cbe4f998
commit 2581de3dc7
2 changed files with 97 additions and 0 deletions

11
src/parse_cov.py Normal file
View File

@@ -0,0 +1,11 @@
import sys
from collections import defaultdict
import json
data = defaultdict(lambda: [])
for line in sys.stdin:
chrom, start, stop, _, depth = line.rstrip().split("\t")
data[f"{chrom}_{start}_{stop}"].append(depth)
print(json.dumps(dict(data)))