compara-deep-learning/create_genome_maps.py

13 lines
307 B
Python
Raw Normal View History

2019-07-24 03:27:54 -07:00
import pickle
from get_data import get_data_genome
2019-07-24 04:54:02 -07:00
dir_g = "data"
cmap, cimap, ld, ldg, a, d = get_data_genome(dir_g)
2019-07-24 03:27:54 -07:00
2019-07-24 04:54:02 -07:00
data = dict(cmap=cmap, cimap=cimap, ld=ld, ldg=ldg, a=a, d=d)
2019-07-24 03:27:54 -07:00
2019-07-24 04:54:02 -07:00
with open("genome_maps", "wb") as file:
pickle.dump(data, file)
2019-07-24 03:27:54 -07:00
2019-07-24 04:54:02 -07:00
print("Genome Maps Created Successfully.")