@@ -240,7 +240,6 @@ def multi_constrained_embed(mol, target, mcsQuery, getForceField=UFFGetMoleculeF
240
240
241
241
mols_to_embed = enumerate_undefined_chirals (mol , free_counts )
242
242
243
- timout_embed_secs = 5
244
243
for new_mol in mols_to_embed :
245
244
# print(' Target match:', targetMatch)
246
245
# print(' Candid match:', molMatch)
@@ -262,7 +261,6 @@ def multi_constrained_embed(mol, target, mcsQuery, getForceField=UFFGetMoleculeF
262
261
print (' WARNING: Could not embed molecule.' )
263
262
embedding_failures += 1
264
263
else :
265
- print ('conf id' , ci , 'num_confs' , new_mol .GetNumConformers ())
266
264
# rotate the embedded conformation onto the core:
267
265
rms = AlignMol (new_mol , target , atomMap = algMap )
268
266
@@ -363,6 +361,7 @@ def minimize_mol(mol, target, molMatch, targetMatch, algMap, getForceField):
363
361
rms = AlignMol (mol , target , atomMap = algMap )
364
362
mol .SetDoubleProp ('EmbedRMS' , rms )
365
363
364
+
366
365
def execute (smi , hit_molfile , outfile_base , min_ph = None , max_ph = None , max_inputs = 0 , max_outputs = 0 , modulus = 0 , timout_embed_secs = 5 ):
367
366
368
367
global write_count
@@ -411,9 +410,9 @@ def execute(smi, hit_molfile, outfile_base, min_ph=None, max_ph=None, max_inputs
411
410
else :
412
411
enumerated_mols = [mol ]
413
412
414
- mcs0 = rdFMCS .FindMCS ([hit , mol ], completeRingsOnly = True , matchValences = False , ringMatchesRingOnly = True ,
415
- atomCompare = rdFMCS .AtomCompare .CompareAny , bondCompare = rdFMCS .BondCompare .CompareAny )
416
- # mcs0 = rdFMCS.FindMCS([hit, mol], completeRingsOnly=True, matchValences=False, ringMatchesRingOnly=False )
413
+ # mcs0 = rdFMCS.FindMCS([hit, mol], completeRingsOnly=True, matchValences=False, ringMatchesRingOnly=True,
414
+ # atomCompare=rdFMCS.AtomCompare.CompareAny, bondCompare=rdFMCS.BondCompare.CompareAny)
415
+ mcs0 = rdFMCS .FindMCS ([hit , mol ], completeRingsOnly = True , ringMatchesRingOnly = True )
417
416
mcsQuery = Chem .MolFromSmarts (mcs0 .smartsString )
418
417
419
418
count = 0
@@ -459,7 +458,7 @@ def execute(smi, hit_molfile, outfile_base, min_ph=None, max_ph=None, max_inputs
459
458
def main ():
460
459
"""
461
460
Example usage:
462
- python scripts/transfs/prepare-tether-v3.py --smi Mpro-x0072_0 .smi --mol Mpro-x0072_0 .mol -o TETHERED --max-inputs 500 --chunk-size 1000
461
+ python -m pipelines.xchem.prepare_tether --smi ../../data/mpro/ Mpro-x0387_0 .smi --mol ../../data/mpro/ Mpro-x0387_0 .mol -o TETHERED --max-inputs 500 --chunk-size 100
463
462
464
463
:return:
465
464
"""
0 commit comments