We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 14c5318 commit f7e0991Copy full SHA for f7e0991
alphafold3_pytorch/inputs.py
@@ -2187,7 +2187,15 @@ def extract_canonical_molecules_from_biomolecule_chains(
2187
# construct canonical molecule for post-mapping bond orders
2188
2189
smile = seq_mapping[seq]
2190
- canonical_mol = mol_from_smile(smile)
+ try:
2191
+ canonical_mol = mol_from_smile(smile)
2192
+ except Exception as e:
2193
+ if verbose:
2194
+ logger.warning(
2195
+ f"Failed to construct canonical RDKit molecule from the SMILES string for residue {seq} due to: {e}. "
2196
+ "Skipping canonical molecule construction."
2197
+ )
2198
+ canonical_mol = None
2199
2200
# find all atom positions and masks for the current atomized residue
2201
0 commit comments