Skip to content

Commit

Permalink
Database update
Browse files Browse the repository at this point in the history
  • Loading branch information
alinja committed Jul 19, 2023
1 parent 2b47cd1 commit a9d9483
Show file tree
Hide file tree
Showing 3 changed files with 61,877 additions and 35,448 deletions.
7 changes: 6 additions & 1 deletion haploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -619,6 +619,8 @@ def load_ybrowse_snp():
#TODO quality based filtering
b38 = tlv[3]
f=tlv[8].split(';')
if len(f) < 4:
continue
mname=f[0].split('=')[1]
der=f[3].split('=')[1]
der=der[0].upper()
Expand Down Expand Up @@ -648,7 +650,10 @@ def convert_build38_mkinput():
for mut in haplo_mut:
f.write("chrY %d %d %s\n"%(int(haplo_mut[mut]['b38']), int(haplo_mut[mut]['b38']), haplo_mut[mut]['m']))
for mut in haplo_mut2:
f.write("chrY %d %d %s\n"%(int(haplo_mut2[mut]['b38']), int(haplo_mut2[mut]['b38']), haplo_mut2[mut]['m']))
try:
f.write("chrY %d %d %s\n"%(int(haplo_mut2[mut]['b38']), int(haplo_mut2[mut]['b38']), haplo_mut2[mut]['m']))
except:
pass
for mut in haplo_mut3:
f.write("chrY %d %d %s\n"%(int(haplo_mut3[mut]['b38']), int(haplo_mut3[mut]['b38']), haplo_mut3[mut]['m']))
for mut in haplo_mut4:
Expand Down
Loading

0 comments on commit a9d9483

Please sign in to comment.