load_sdf_library#
- maize.utilities.chem.chem.load_sdf_library(file: Path, split_strategy: Literal['schrodinger', 'inchi', 'schrodinger-tag', 'none'] = 'inchi') list[IsomerCollection][source]#
Loads an SDF library containing multiple molecules with potentially multiple isomers each, and creates an IsomerCollection for all of them.
- Parameters:
file – Path to the SDF file
split_strategy – How to determine which isomer belongs to which molecule, from special tags or the name.
schrodingerexpects a name like1:0(molecule:isomer),schrodinger-tagexpects a tag nameds_lp_Variant,inchiexpects an InChI key as a name, which can be split into molecule and isomer, and'none'provides a separate IsomerCollection for each entry.
- Returns:
Created molecules
- Return type: