763f8721952e8042d6086b103deb2450334be4b3,scripts/dock_dude.py,,prepare_ligands,#Any#Any#Any#,88
Before Change
print("mol2_file")
print(mol2_file)
mol_names = []
for mol in pybel.readfile("mol2", mol2_file):
mol_names.append(str(generate_ligand_mol2(mol, save_dir)))
prepare_ligand_partial = partial(prepare_ligand, save_dir=save_dir)
if worker_pool is not None:
worker_pool.map_sync(prepare_ligand_partial, mol_names)
After Change
print("mol2_file")
print(mol2_file)
mol_data = [tuple(x + (save_dir,)) for x in read_mol2_file(mol2_file)]
if worker_pool is not None:
worker_pool.map(prepare_ligand, mol_data)
else:
for mol_datum in mol_data:
prepare_ligand(mol_datum)
def prepare_ligands_in_directory(dude_dir,
new_dir,
receptor_name=None,
worker_pool=None):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 8
Instances Project Name: deepchem/deepchem
Commit Name: 763f8721952e8042d6086b103deb2450334be4b3
Time: 2017-03-09
Author: lilleswing@gmail.com
File Name: scripts/dock_dude.py
Class Name:
Method Name: prepare_ligands
Project Name: automl/auto-sklearn
Commit Name: 8c5e3c7c1b7a729661f680df7eaf20885be3e039
Time: 2018-08-14
Author: taneli.mielikainen@iki.fi
File Name: autosklearn/pipeline/create_searchspace_util.py
Class Name:
Method Name: add_forbidden
Project Name: rlworkgroup/garage
Commit Name: 70e5a9599c6901bd33cbbab3db7cfa9a0290e0d7
Time: 2019-11-21
Author: utkarshjp7@gmail.com
File Name: src/garage/torch/utils.py
Class Name:
Method Name: torch_to_np