home
about
news
download
doc
source
systems
tests
bugs
contact
IMP Reference Guide
develop.50fdd7fa33,2025/09/05
The Integrative Modeling Platform
IMP Manual
Reference Guide
Tutorial Index
Modules
Classes
Examples
lib
IMP
emseqfinder
mldb
version 20250905.develop.50fdd7fa33
parts_ML_database_generation.py
1
import
sys
2
import
os
3
4
mapfiletxt = sys.argv[1]
5
6
with open(mapfiletxt,
'
r') as txtfile:
7
expmappdb_list = txtfile.readlines()[1:]
8
9
for
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)