Traceback (most recent call last):
File "/projects/proteinml/.links/miniconda3/envs/neuralplexer_dev/bin/neuralplexer-inference", line 33, in <module>
sys.exit(load_entry_point('neuralplexer', 'console_scripts', 'neuralplexer-inference')())
File "/kfs2/projects/proteinml/repos/NeuralPLexer/neuralplexer/inference.py", line 672, in main
multi_pose_sampling(
File "/kfs2/projects/proteinml/repos/NeuralPLexer/neuralplexer/inference.py", line 169, in multi_pose_sampling
np_sample, mol = featurize_protein_and_ligands(
File "/kfs2/projects/proteinml/repos/NeuralPLexer/neuralplexer/data/pipeline.py", line 908, in featurize_protein_and_ligands
lig_sample, mol_ref = process_mol_file(
File "/kfs2/projects/proteinml/repos/NeuralPLexer/neuralplexer/data/pipeline.py", line 120, in process_mol_file
conf_xyz = np.array(mol.GetConformer().GetPositions())
ValueError: Bad Conformer Id
This is expected, as an RDKit mol from smiles has no conformers.
Adding
Chem.rdDepictor.Compute2DCoords(mol)
Directly before the conformation generation solves the issue.
Description
Ran:
Raised:
This is expected, as an RDKit mol from smiles has no conformers. Adding
Directly before the conformation generation solves the issue.