-
Notifications
You must be signed in to change notification settings - Fork 1
/
check_all_t2t.py
executable file
·29 lines (23 loc) · 1.17 KB
/
check_all_t2t.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/usr/bin/env python3
import sys
import re
import telomere_check
import os
data_file = "/data/antipovd2//devel/verkkohic/human_only.txt"
data_dir = "/data/antipovd2/data/"
#data_dir = "/Users/antipovd2/work/verkkohic/data/"
res_dir = "/Users/antipovd2/work/verkkohic/res/"
res_dir = "/data/Phillippy/t2t-share/assemblies/drafts/wip/"
#HG005/verkko/v1.1/assembly.homopolymer-compressed.trio.paths.tsv
for dir in os.listdir(data_dir):
workdir = os.path.join(data_dir, dir)
if os.path.isdir(workdir):
print (f'dataset: {dir}')
t2t = os.path.join(workdir, "assembly_graph", "assembly_graph.windows.0.4.50kb.ends.bed")
if os.path.exists(t2t):
# rukki_res = os.path.join(res_dir, dir, sys.argv[1], "unitig-popped-unitig-normal-connected-tip.paths.tsv")
trio_dir = os.path.join(res_dir, dir, "verkko/v1.1")
rukki_res = os.path.join(trio_dir, "assembly.homopolymer-compressed.trio.paths.tsv")
gfa = os.path.join(trio_dir, "hic/unitig-popped-unitig-normal-connected-tip.homopolymer-compressed.noseq.gfa")
if os.path.exists(rukki_res):
telomere_check.evaluate_telomers(rukki_res, t2t, gfa)