-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathhaploy_db_import.py
More file actions
executable file
·44 lines (32 loc) · 965 Bytes
/
Copy pathhaploy_db_import.py
File metadata and controls
executable file
·44 lines (32 loc) · 965 Bytes
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#!/usr/bin/python3
import sys
import os
import haploy
do_yfull_snps=1
include_ftdna_tree=1
#use_ftdna_tree=1
print("Loading SNP DB from ISOGG csv...")
haploy.load_snp()
print("Loading SNP DB from YBrowse...")
haploy.load_ybrowse_snp()
haploy.save_alldbj()
if do_yfull_snps:
print("Loading SNP DB from YFull...")
haploy.load_yfull_snp(459)
if include_ftdna_tree:
print("Loading SNP DB from FTDNA...")
haploy.import_ftdna_tree()
print("Running conversion to support build 36 matching...")
haploy.convert_build38to36()
print("Running conversion to support build 37 matching...")
haploy.convert_build38to37()
print("Importing tree DB from YFull...")
haploy.import_yfull_tree()
#haploy.show_db2()
print("Writing local mutation DB (legacy)...")
haploy.save_db()
print("Writing local mutation DB (FTDNA tree json)...")
haploy.save_db3j()
print("Writing local mutation DB (Yfull tree json)...")
haploy.save_db2j()
print("Database import done!")