- openfe.setup.ligand_network_planning.generate_minimal_spanning_network(ligands: Iterable[SmallMoleculeComponent], mappers: AtomMapper | Iterable[AtomMapper], scorer: Callable[[LigandAtomMapping], float], progress: bool = True, n_processes: int = 1) LigandNetwork#
Plan a network with as few edges as possible with maximum total score
- Parameters:
ligands (Iterable[SmallMoleculeComponent]) – the ligands to include in the LigandNetwork
mappers (AtomMapper or Iterable[AtomMapper]) – the AtomMapper(s) to use to propose mappings. At least 1 required, but many can be given, in which case all will be tried to find the highest score edges
scorer (Scoring function) – any callable which takes a LigandAtomMapping and returns a float
progress (bool) – If True, show a tqdm progress bar. (default=True)
n_processes (int) – number of cpu processes to use if parallelizing network generation.