@@ -66,7 +66,7 @@ def analyse(conformers: conformer.ConformerHitList) -> molecule:
66
66
print (f'Most probable conformer RMSD wrt input: { round (most_probable_conformer .rmsd (), 3 )} ; '
67
67
f'wrt minimised: { round (most_probable_conformer .rmsd (wrt = "minimised" ), 3 )} .' )
68
68
69
- print (f 'Scores of top 10 conformers: ' , end = '' )
69
+ print ('Scores of top 10 conformers: ' , end = '' )
70
70
71
71
top_ten = conformers [:10 ]
72
72
for i in range (len (top_ten )):
@@ -85,7 +85,7 @@ def overlay(conformers, query: str, output_filename: str) -> None:
85
85
:param query: SMARTS pattern which the conformers will overlay on top of.
86
86
Should be consistent across all conformers, e.g. benzene ring.
87
87
"""
88
- print (f 'Overlaying conformers ... ' , end = '' )
88
+ print ('Overlaying conformers ... ' , end = '' )
89
89
conformers_mols = [c .molecule for c in conformers ]
90
90
ss_search = SubstructureSearch ()
91
91
substructure = SMARTSSubstructure (query )
@@ -113,8 +113,8 @@ def write_conformers_to_file(conformers: conformer.ConformerHitList, filename: s
113
113
"""
114
114
115
115
with io .MoleculeWriter (filename ) as writer :
116
- for conformer in conformers :
117
- writer .write (conformer .molecule )
116
+ for conf in conformers :
117
+ writer .write (conf .molecule )
118
118
119
119
120
120
if __name__ == '__main__' :
@@ -124,12 +124,12 @@ def write_conformers_to_file(conformers: conformer.ConformerHitList, filename: s
124
124
mol = read (input_filename )
125
125
126
126
# Generate conformers
127
- conformers = generate_conformers (mol , 20 )
127
+ confs = generate_conformers (mol , 20 )
128
128
129
129
# Provide summary of analysis
130
- analyse (conformers )
130
+ analyse (confs )
131
131
132
132
# Overlay structures based on common substructure
133
133
query = 'c1cncnc1'
134
134
output_filename = f'superimposed_{ input_filename } '
135
- overlay (conformers , query , output_filename )
135
+ overlay (confs , query , output_filename )
0 commit comments