NuriKit v0.1.0b2
Loading...
Searching...
No Matches
guess.h
Go to the documentation of this file.
1//
2// Project NuriKit - Copyright 2023 SNU Compbio Lab.
3// SPDX-License-Identifier: Apache-2.0
4//
5
6#ifndef NURI_ALGO_GUESS_H_
7#define NURI_ALGO_GUESS_H_
8
9#include <absl/base/attributes.h>
10
11#include "nuri/core/molecule.h"
12
13namespace nuri {
14constexpr double kDefaultThreshold = 0.5;
15
31ABSL_MUST_USE_RESULT extern bool
33 double threshold = kDefaultThreshold);
34
45extern void guess_connectivity(MoleculeMutator &mut, int conf = 0,
46 double threshold = kDefaultThreshold);
47
59ABSL_MUST_USE_RESULT extern bool guess_all_types(Molecule &mol, int conf = 0);
60
70extern void guess_fcharge_2d(Molecule &mol);
71
80extern void guess_hydrogens_2d(Molecule &mol);
81
90
91namespace internal {
92 ABSL_MUST_USE_RESULT extern bool guess_update_subs(Molecule &mol);
93} // namespace internal
94} // namespace nuri
95
96#endif /* NURI_ALGO_GUESS_H_ */
A class to mutate a molecule.
Definition molecule.h:1772
Read-only molecule class.
Definition molecule.h:943
Definition crdgen.h:16
void guess_fcharge_hydrogens_2d(Molecule &mol)
Guess formal charges and implicit hydrogens of a molecule.
void guess_hydrogens_2d(Molecule &mol)
Guess hydrogens of a molecule.
void guess_fcharge_2d(Molecule &mol)
Guess formal charges of a molecule.
constexpr double kDefaultThreshold
Definition guess.h:14
ABSL_MUST_USE_RESULT bool guess_all_types(Molecule &mol, int conf=0)
Guess types of atoms and bonds, and number of hydrogens of a molecule.
void guess_connectivity(MoleculeMutator &mut, int conf=0, double threshold=kDefaultThreshold)
Guess connectivity information of a molecule.
ABSL_MUST_USE_RESULT bool guess_everything(MoleculeMutator &mut, int conf=0, double threshold=kDefaultThreshold)
Guess bonds, types of atoms, and number of hydrogens of a molecule.