feat: scripts to get coverage across panel added
This commit is contained in:
11
src/parse_cov.py
Normal file
11
src/parse_cov.py
Normal 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)))
|
||||
Reference in New Issue
Block a user