drugforge.data.backend.openeye.load_openeye_sdfs
- drugforge.data.backend.openeye.load_openeye_sdfs(sdf_fn: str | Path) list[openeye.oechem.OEGraphMol][source]
Load a list of OpenEye OEGraphMol objects from an SDF file.
- Parameters:
sdf_fn (Union[str, Path]) – The path of the SDF file to read.
- Returns:
A list of the OEGraphMol objects read from the SDF file.
- Return type:
list of oechem.OEGraphMol
- Raises:
FileNotFoundError – If the specified file does not exist.
oechem.OEError – If the CIF file cannot be opened.
Notes
This function will raise an exception if the specified file does not exist or if the SDF file cannot be opened.