IMP logo
IMP Reference Guide  develop.7482b7c7af, 2026/12/05
The Integrative Modeling Platform
parts_ML_database_generation.py
1import sys
2import os
3
4mapfiletxt = sys.argv[1]
5
6with open(mapfiletxt, 'r') as txtfile:
7 expmappdb_list = txtfile.readlines()[1:]
8
9for expmappdb in expmappdb_list:
10 # EMDB, PDB, Chain Ids, resolution and thresholding values
11 expmappdb = expmappdb.rstrip()
12 emdb = expmappdb.split('_')[0]
13 resolution = expmappdb.split('_')[1]
14 threshold = expmappdb.split('_')[2]
15 # first normalize the map
16 os.system('python3 ' + './normalize_map_for_parts_fiiting.py' + ' '
17 + emdb + ' --thresh ' + threshold)
18 # now extract side chain densities
19 datbase_path = emdb + '_ML_side.dat'
20 os.system('python3 ' + './get_database_for_one_emdb_using_parts.py' + ' '
21 + emdb + ' ' + datbase_path + ' ' + resolution)