From 550c3ce8b6c7838a396037d440bb49cf5108fefd Mon Sep 17 00:00:00 2001 From: xiaoruiDong Date: Wed, 18 Oct 2023 01:39:37 +0000 Subject: [PATCH] deploy: ee3663dc470655237cb9426c5a12c9ad313de83a --- genindex.html | 1002 +---------------- index.html | 2 +- objects.inv | Bin 4931 -> 2286 bytes py-modindex.html | 147 +-- reference/conf.html | 651 +---------- .../embedding_geometries/align.html | 257 +---- .../embedding_geometries/embedders.html | 166 +-- .../embedding_geometries/index.html | 26 +- .../embedding_geometries/ts_guessers.html | 261 +---- .../geometry_optimization/index.html | 17 +- .../geometry_optimization/optimizers.html | 168 +-- .../geometry_optimization/ts_optimizers.html | 249 +--- reference/conformer_generation/index.html | 14 +- .../postprocessing/index.html | 29 +- .../postprocessing/pruners.html | 223 +--- .../postprocessing/solvation.html | 80 +- .../postprocessing/ts_verifiers.html | 249 +--- .../postprocessing/verifiers.html | 89 +- reference/conformer_generation/utils.html | 151 +-- .../workflow/generators.html | 157 +-- .../conformer_generation/workflow/index.html | 25 +- .../workflow/metrics.html | 85 +- .../workflow/sampler.html | 155 +-- .../workflow/ts_generators.html | 116 +- reference/external/index.html | 90 +- reference/external/logparser/base.html | 574 +--------- reference/external/logparser/gaussian.html | 36 +- reference/external/logparser/index.html | 94 +- reference/external/logparser/orca.html | 46 +- reference/external/logparser/qchem.html | 82 +- reference/external/logparser/utils.html | 26 +- reference/mathlib/curvefit.html | 63 +- reference/mathlib/geom.html | 170 +-- reference/mathlib/greedymin.html | 113 +- reference/mathlib/index.html | 35 +- reference/mol.html | 6 +- reference/rdmc.html | 277 +---- reference/reaction.html | 246 +--- reference/ts.html | 217 +--- reference/utils.html | 2 +- reference/view.html | 206 +--- searchindex.js | 2 +- 42 files changed, 151 insertions(+), 6453 deletions(-) diff --git a/genindex.html b/genindex.html index 624a9b99..8e230e81 100644 --- a/genindex.html +++ b/genindex.html @@ -352,7 +352,6 @@

Index

A - | B | C | D | E @@ -360,30 +359,21 @@

Index

| G | H | I - | J | K | L | M - | N | O | P - | Q | R | S | T | U - | V | W - | X

A

+ -
-

B

- - - -
-

C

@@ -518,59 +432,23 @@

C

D

-

E

- +
@@ -578,19 +456,11 @@

E

F

- +
  • fix_CO_openbabel() (in module rdmc.utils)
  • -
  • formed_bonds (rdmc.reaction.Reaction property) -
  • -
  • FourierSeries1D (class in rdmc.mathlib.curvefit) -
  • -
  • freq_viewer() (in module rdmc.view) -
  • -
  • freqs (rdmc.external.logparser.base.CclibLog property) -
  • -
  • from_complex() (rdmc.conformer_generation.align.NaiveAlign class method) -
  • -
  • from_r_and_p_complex() (rdmc.conformer_generation.align.NaiveAlign class method) -
  • -
    @@ -896,58 +596,12 @@

    H

    I

    - -
    - -

    J

    - -
    @@ -975,53 +629,11 @@

    M

    @@ -1077,113 +663,27 @@

    M

  • (rdmc.forcefield.RDKitFF property)
  • -
  • mol_animation() (in module rdmc.view) -
  • -
  • mol_to_dict() (in module rdmc.conformer_generation.utils) + +
  • + +

    O

    + + -
    - -

    N

    - - -
    - -

    O

    - - -
    @@ -1191,59 +691,15 @@

    O

    P

    -
    - -

    Q

    - - -
    @@ -1251,140 +707,15 @@

    Q

    R

    - +
    • rdmc.external.inpwriter.utils @@ -1428,48 +757,8 @@

      R

    • module
    -
  • - rdmc.external.logparser - -
  • -
  • - rdmc.external.logparser.base - -
  • -
  • - rdmc.external.logparser.gaussian - -
  • -
  • - rdmc.external.logparser.orca - -
  • -
  • - rdmc.external.logparser.qchem - -
  • -
  • - rdmc.external.logparser.utils - -
  • +
    • rdmc.external.rmg @@ -1482,34 +771,6 @@

      R

    • -
    • - rdmc.mathlib - -
    • -
    • - rdmc.mathlib.curvefit - -
    • -
    • - rdmc.mathlib.geom - -
    • -
    • - rdmc.mathlib.greedymin - -
    • @@ -1517,20 +778,6 @@

      R

    • -
    • - rdmc.reaction - -
    • -
    • - rdmc.ts - -
    • @@ -1540,15 +787,6 @@

      R

    • module
    -
  • - rdmc.view - -
  • -
  • Reaction (class in rdmc.reaction) -
  • recover_mol() (rdmc.forcefield.RDKitFF method)
  • Reflect() (rdmc.mol.RDKitMol method) @@ -1556,26 +794,10 @@

    R

  • RemoveHs() (rdmc.mol.RDKitMol method)
  • RenumberAtoms() (rdmc.mol.RDKitMol method) -
  • -
  • require_bond_analysis() (rdmc.reaction.Reaction method) -
  • -
  • require_job_type() (rdmc.external.logparser.base.BaseLog method) -
  • -
  • require_ts() (rdmc.external.logparser.base.BaseLog method) -
  • -
  • reset_atom_maps() (rdmc.conf.ConformerFilter method) -
  • -
  • reset_pmol() (in module rdmc.conformer_generation.align)
  • reverse_map() (in module rdmc.utils)
  • rmg_mol_to_rdkit_mol() (in module rdmc.utils) -
  • -
  • RMSDPPGuesser (class in rdmc.conformer_generation.ts_guessers) -
  • -
  • rotate() (in module rdmc.mathlib.geom) -
  • -
  • rotate_fragment_separately() (rdmc.conformer_generation.align.NaiveAlign method)
  • @@ -1593,65 +815,17 @@

    S

  • SaturateMol() (rdmc.mol.RDKitMol method)
  • -
  • save_guesses() (rdmc.conformer_generation.ts_guessers.TSInitialGuesser method) -
  • -
  • save_opt_mols() (rdmc.conformer_generation.optimizers.GaussianOptimizer method) - -
  • -
  • SCGMetric (class in rdmc.conformer_generation.metrics) -
  • -
  • scheme_to_dict() (in module rdmc.external.logparser.utils) -
  • -
  • schemes (rdmc.external.logparser.base.BaseLog property) -
  • -
  • score_bimolecule() (rdmc.conformer_generation.align.NaiveAlign method) -
  • -
  • search_for_a_minimum() (in module rdmc.mathlib.greedymin) -
  • -
  • search_minimum() (in module rdmc.mathlib.greedymin) -
  • -
  • SellaOptimizer (class in rdmc.conformer_generation.ts_optimizers) -
  • -
  • set_config() (rdmc.conformer_generation.generators.StochasticConformerGenerator method) -
  • -
  • set_filter() (rdmc.conformer_generation.generators.ConformerGenerator method) - -
  • SetVdwMatrix() (rdmc.mol.RDKitMol method) -
  • -
  • split_by_energies() (rdmc.conf.ConformerCluster method) -
  • -
  • StochasticConformerGenerator (class in rdmc.conformer_generation.generators) -
  • -
  • success (rdmc.external.logparser.base.BaseLog property)
  • @@ -1673,46 +841,20 @@

    S

    T

    - -
    - -

    V

    - - -

    W

    @@ -1820,8 +898,6 @@

    W

  • write_gaussian_irc() (in module rdmc.external.inpwriter.gaussian)
  • write_gaussian_opt() (in module rdmc.external.inpwriter.gaussian) -
  • -
  • write_mol_data() (rdmc.conformer_generation.embedders.ConfGenEmbedder method)
  • -

    X

    - - - -
    - diff --git a/index.html b/index.html index b59fae93..3add7b4e 100644 --- a/index.html +++ b/index.html @@ -382,7 +382,7 @@

    RDMC Documentationrxn = Reaction('CCO>>CC(=O)O') -

    And see what the mol and rxn are capable of! The full lists of APIs of RDKitMol and Reaction are provided in this documentation.

    +

    And see what the mol and rxn are capable of! The full lists of APIs of RDKitMol and Reaction are provided in this documentation.

    We also provided a few notebooks (available in \ipython and Colab) to demonstrate the usage of RDMC. Please feel invited to try them out!

    RDMC is developed by

    - rdmc - - - -     - rdmc.conf - - - -     - rdmc.conformer_generation - - - -     - rdmc.conformer_generation.align - - - -     - rdmc.conformer_generation.embedders - - - -     - rdmc.conformer_generation.generators - - - -     - rdmc.conformer_generation.metrics - - - -     - rdmc.conformer_generation.optimizers - - - -     - rdmc.conformer_generation.pruners - - - -     - rdmc.conformer_generation.sampler - - - -     - rdmc.conformer_generation.solvation - - - -     - rdmc.conformer_generation.ts_generators - - - -     - rdmc.conformer_generation.ts_guessers - - - -     - rdmc.conformer_generation.ts_optimizers - - - -     - rdmc.conformer_generation.ts_verifiers - - - -     - rdmc.conformer_generation.utils - - - -     - rdmc.conformer_generation.verifiers + rdmc @@ -477,36 +397,6 @@

    Python Module Index

        rdmc.external.inpwriter.utils - - -     - rdmc.external.logparser - - - -     - rdmc.external.logparser.base - - - -     - rdmc.external.logparser.gaussian - - - -     - rdmc.external.logparser.orca - - - -     - rdmc.external.logparser.qchem - - - -     - rdmc.external.logparser.utils -     @@ -517,51 +407,16 @@

    Python Module Index

        rdmc.forcefield - - -     - rdmc.mathlib - - - -     - rdmc.mathlib.curvefit - - - -     - rdmc.mathlib.geom - - - -     - rdmc.mathlib.greedymin -     rdmc.mol - - -     - rdmc.reaction - - - -     - rdmc.ts -     rdmc.utils - - -     - rdmc.view - diff --git a/reference/conf.html b/reference/conf.html index a714f16a..b71550f4 100644 --- a/reference/conf.html +++ b/reference/conf.html @@ -39,7 +39,6 @@ - @@ -457,599 +456,8 @@
    -
    -

    rdmc.conf#

    -

    This module provides class and methods for dealing with RDKit Conformer.

    -
    -
    -class rdmc.conf.ConformerCluster(children: array, energies: array | None = None)#
    -

    Bases: object

    -
    -
    -merge(clusters: list)#
    -

    Merge the cluster with a list of clusters.

    -
    -
    Parameters:
    -

    clusters (list) – A list of the ConformerCluster object to be merged in.

    -
    -
    -
    - -
    -
    -split_by_energies(decimals: int = 1, as_dict: bool = True)#
    -

    Split the conformer by energies.

    -
    -
    Parameters:
    -
      -
    • decimals (int, optional) – clustering children based on the number of digit -after the dot of the energy values. -For kcal/mol and J/mol, 0 or 1 is recommended; for -hartree, 3 or 4 is recommended. Defaults to 1.

    • -
    • as_dict (bool, optional) – If True, return a dict object whose keys are -energy values and values are divided ConformerCluster -object. Otherwise, return a list of ConformerClusters. -Defaults to True.

    • -
    -
    -
    -
    - -
    - -
    -
    -class rdmc.conf.ConformerFilter(mol: RDKitMol)#
    -

    Bases: object

    -
    -
    -property atom_maps#
    -

    Store all possible atommappings of the given molecules. There are usually combinatory -explosion.

    -
    - -
    -
    -check_dihed_angle_diff(confs, threshold: float = 5.0, mask: ndarray | None = None, adjust_periodicity: bool = False, as_dict: bool = True, as_list_idx: bool = False)#
    -

    The implementation of checking individual dihedral angle difference. This approach is also -implemented in the MSTor workflow.

    -
    -
    Parameters:
    -
      -
    • confs (list) – A list of conformer IDs.

    • -
    • threshold (float, optional) – The difference (in degree) used for filtering. Defaults to 5.

    • -
    • mask (np.ndarray, optional) – An array that has the same length as torsions and values of True or False to -indicate which torsions are not considered. This can be helpful, e.g., to exclude -methyl torsional symmetry.

    • -
    • adjust_periodicity (bool, optional) – Since dihedral angles have a period of 360 degrees. Defaults to True. -It is suggested to run twice with this value be True and False to -get a better performance.

    • -
    • as_dict (bool) – Return the result as a dict object with keys for the index of clusters and values -of conformer indexes (provided in confs). Otherwise, return as a list of grouped -conformer indexes. Defaults to True.

    • -
    • as_list_idx (bool) – Return the indexes in the confs list other than the value in the confs.

    • -
    -
    -
    Returns:
    -

    dict or list

    -
    -
    -
    - -
    -
    -filter_by_dihed_angles(clusters, threshold: float = 5.0, mask: ndarray | None = None, as_clusters: bool = True) list#
    -

    A method to filter comformers by calculating the differences of dihedral angles between conformers. -The check will be implemented twice, with and without considering periodicity.

    -
    -
    Parameters:
    -
      -
    • clusters (ConformerCluster or list) – A single ConformerCluster object or a list of conformerClusters.

    • -
    • threshold (float, optional) – The threshold (in degree) used for hierarchy clustering. Defaults to 5.

    • -
    • mask (np.array, optional) – An array that has the same length as torsions and values of True or False to -indicate which torsions are not considered. This can be helpful, e.g., to exclude -methyl torsional symmetry.

    • -
    • as_clusters (bool, optional) – Return the results as a list of ConformerClusters (True) or a list of -grouped conformer indexes (True). Defaults to True.

    • -
    -
    -
    Returns:
    -

    list

    -
    -
    -
    - -
    -
    -filter_by_iter_hcluster(clusters: list | ConformerCluster, threshold: float = 5.0, criterion: str = 'distance', method: str = 'average', max_iter: int = 10, as_clusters: bool = True)#
    -

    A method to filter comformers by iteratively applying hierarchy clustering. -In a new iteration, only the distinguishable representative conformers will be used that are -generated in the previous iteration.

    -
    -
    Parameters:
    -
      -
    • clusters (ConformerCluster or list) – A single ConformerCluster object or a list of conformerClusters.

    • -
    • threshold (float, optional) – The threshold (in degree) used for hierarchy clustering. Defaults to 5.

    • -
    • criterion (str, optional) – Specifies the criterion for forming flat clusters. Valid values are ‘inconsistent’, -‘distance’ (default), or ‘maxclust’ cluster formation algorithms

    • -
    • method (str, optional) – The linkage method to use. Valid values are single, complete, average (default), -weighted, median centroid, and ward. Except median centroid (O(n^3)), others have a -computational cost scaled by O(n^2).

    • -
    • adjust_periodicity (bool, optional) – Since dihedral angles have a period of 360 degrees. Defaults to True. -It is suggested to run twice with this value be True and False to -get a better performance.

    • -
    • max_iter (int, optional) – The max number of iterations. Defaults to 10. There is a early-stopping techinque -if number of clusters doesn’t change with increasing number of iterations.

    • -
    • as_clusters (bool, optional) – Return the results as a list of ConformerClusters (True) or a list of -grouped conformer indexes (True). Defaults to True.

    • -
    -
    -
    Returns:
    -

    list

    -
    -
    -
    - -
    -
    -generate_rmsds_of_cluster(cluster, reflect: bool = False, reorder: bool = True, max_iters: int = 1000)#
    -

    Get the RMSDs between the representative conformer and each conformer in the cluster.

    -
    - -
    -
    -get_tor_matrix(confs: array | list, adjust_periodicity: bool = True) ndarray#
    -

    Get the torsional matrix consists of torsional angles for the input list of conformer indexes.

    -
    -
    Parameters:
    -
      -
    • confid (int) – The conformer ID

    • -
    • adjust_periodicity (bool) – Whether to adjust the periodicity for torsional angles.

    • -
    -
    -
    Returns:
    -

    np.array – a M (the number of conformers indicated by confs) x N (the number of torsional angles) matrix

    -
    -
    -
    - -
    -
    -get_torsional_angles(confid: int, adjust_periodicity: bool = True) array#
    -

    Get torsional angles for a given conformers.

    -
    -
    Parameters:
    -
      -
    • confid (int) – The conformer ID.

    • -
    • adjust_periodicity (bool) – Whether to adjust the periodicity for torsional angles. -Defaults to True.

    • -
    -
    -
    Returns:
    -

    np.array – A 1D array of torsional angles.

    -
    -
    -
    - -
    -
    -hierarchy_cluster(confs, threshold: float = 5.0, criterion: str = 'distance', method: str = 'average', adjust_periodicity: bool = False, as_dict: bool = True, as_list_idx: bool = False)#
    -

    The implementation of an hierarchy clustering method based on scipy. -It is basically defining clusters based on points within a hypercube defined by threshold. -More details refer to scipy.

    -
    -
    Parameters:
    -
      -
    • confs (list) – A list of conformer IDs.

    • -
    • threshold (float, optional) – The threshold (in degree) used for hierarchy clustering. Defaults to 5.

    • -
    • criterion (str, optional) – Specifies the criterion for forming flat clusters. Valid values are 'inconsistent', -'distance' (default), or 'maxclust' cluster formation algorithms.

    • -
    • method (str, optional) – The linkage method to use. Valid values are 'single', 'complete', 'average' (default), -'weighted', 'median centroid', and 'ward'. Except median centroid (\(O(n^3)\)), others have a -computational cost scaled by \(O(n^2)\).

    • -
    • adjust_periodicity (bool, optional) – Since dihedral angles have a period of 360 degrees, adjusting for periodicity helps -create better clustering results. Defaults to True. -It is suggested to run twice with this value be True and False to -get a better performance.

    • -
    • as_dict (bool) – Return the result as a dict object with keys for the index of clusters and values -of conformer indexes (provided in confs). Otherwise, return as a list of grouped -conformer indexes. Defaults to True.

    • -
    • as_list_idx (bool) – Return the indexes in the confs list other than the value in the confs. -Default to False.

    • -
    -
    -
    -
    - -
    -
    -pairwise_rmsd(i: int, j: int, reflect: bool = False, reorder: bool = True, max_iters: int = 1000)#
    -

    The implementation of calculating pairwise RMSD values.

    -
    -
    Parameters:
    -
      -
    • i (int) – Index of one of the conformer. Usually, used as the ‘reference’.

    • -
    • j (int) – Index of the other conformer.

    • -
    • reflect (bool, optional) – Whether to reflect the j conformer to rule out -mirror symmetry. Defaults to False.

    • -
    • reorder (bool, optional) – Whether to allow atom index order to change (based -on isomorphism check to rule out torsional symmetry -and rotational symmetry).

    • -
    • max_iters (int, optional) – The max iteration in mimizing the RMSD.

    • -
    -
    -
    -
    - -
    -
    -reset_atom_maps(max_atom_maps=100000)#
    -

    Reset the stored matches.

    -
    -
    Parameters:
    -

    max_atom_maps (int) – The maximum number of atom maps to generate To avoid combinatory explosion, -it is set to avoid the program to run forever. As a cost, you may miss some mappings.

    -
    -
    -
    - -
    - -
    -
    -class rdmc.conf.RDKitConf(conf)#
    -

    Bases: object

    -

    A wrapper for rdchem.Conformer.

    -

    The method nomenclature follows the Camel style to be consistent with RDKit.

    -
    -
    -classmethod FromConformer(conf: Conformer) RDKitConf#
    -

    Convert a RDKit Chem.rdchem.Conformer to a RDKitConf. This allows a more -capable and flexible Conformer class.

    -
    -
    Parameters:
    -

    conf (Chem.rdchem.Conformer) – A RDKit Conformer instance to be converted.

    -
    -
    Returns:
    -

    RDKitConf – The conformer corresponding to the RDKit Conformer in RDKitConf

    -
    -
    -
    - -
    -
    -classmethod FromMol(mol: RWMol | Mol, id: int = 0) RDkitConf#
    -

    Get a RDKitConf instance from a Chem.rdchem.Mol/RWMol instance.

    -
    -
    Parameters:
    -
      -
    • mol (Union[RWMol, Mol]) – a Molecule in RDKit Default format.

    • -
    • id (int) – The id of the conformer to be extracted from the molecule.

    • -
    -
    -
    Returns:
    -

    RDKitConf – A Conformer in RDKitConf of the given molecule

    -
    -
    -
    - -
    -
    -classmethod FromRDKitMol(rdkitmol: RDKitMol, id: int = 0) RDkitConf#
    -

    Get a RDKitConf instance from a RDKitMol instance. The owning molecule -of the generated conformer is RDKitMol instead of Chem.rdchem.Mol.

    -
    -
    Parameters:
    -
      -
    • rdkitmol (RDKitMol) – a Molecule in RDKitMol.

    • -
    • id (int) – The id of the conformer to be extracted from the molecule.

    • -
    -
    -
    Returns:
    -

    RDKitConf – A Conformer in RDKitConf of the given molecule

    -
    -
    -
    - -
    -
    -GetAllTorsionsDeg() list#
    -

    Get the dihedral angles of all torsional modes (rotors) of the Conformer. The sequence of the -values are corresponding to the torsions of the molecule (GetTorsionalModes).

    -
    -
    Returns:
    -

    list – A list of dihedral angles of all torsional modes.

    -
    -
    -
    - -
    -
    -GetAngleDeg(atomIds: Sequence[int]) float#
    -

    Get the angle between atoms in degrees.

    -
    -
    Parameters:
    -

    atomIds (Sequence) – A 3-element sequence object containing atom indexes.

    -
    -
    Returns:
    -

    float – Angle value in degrees.

    -
    -
    -
    - -
    -
    -GetAngleRad(atomIds: Sequence[int]) float#
    -

    Get the angle between atoms in rads.

    -
    -
    Parameters:
    -

    atomIds (Sequence) – A 3-element sequence object containing atom indexes.

    -
    -
    Returns:
    -

    float – Angle value in rads.

    -
    -
    -
    - -
    -
    -GetBondLength(atomIds: Sequence[int]) float#
    -

    Get the bond length between atoms in Angstrom.

    -
    -
    Parameters:
    -

    atomIds (Sequence) – A 3-element sequence object containing atom indexes.

    -
    -
    Returns:
    -

    float – Bond length in Angstrom.

    -
    -
    -
    - -
    -
    -GetDistanceMatrix() ndarray#
    -

    Get the distance matrix of the conformer.

    -
    -
    Returns:
    -

    array – n x n distance matrix such that n is the number of atom.

    -
    -
    -
    - -
    -
    -GetOwningMol()#
    -

    Get the owning molecule of the conformer.

    -
    -
    Returns:
    -

    Union[Mol, RWMol, RDKitMol] – The owning molecule

    -
    -
    -
    - -
    -
    -GetTorsionDeg(torsion: list) float#
    -

    Get the dihedral angle of the torsion in degrees. The torsion can be defined -by any atoms in the molecule (not necessarily bonded atoms.)

    -
    -
    Parameters:
    -

    torsion (list) – A list of four atom indexes.

    -
    -
    Returns:
    -

    float – The dihedral angle of the torsion.

    -
    -
    -
    - -
    -
    -GetTorsionalModes(indexed1: bool = False, excludeMethyl: bool = False, includeRings: bool = False) list#
    -

    Get all of the torsional modes (rotors) of the Conformer. This information -is obtained from its owning molecule.

    -
    -
    Parameters:
    -
      -
    • indexed1 – The atom index in RDKit starts from 0. If you want to have -indexed 1 atom indexes, please set this argument to True.

    • -
    • excludeMethyl (bool) – Whether exclude the torsions with methyl groups. Defaults to False.

    • -
    • includeRings (bool) – Whether or not to include ring torsions. Defaults to False.

    • -
    -
    -
    Returns:
    -

    Optinal[list] – A list of four-atom-indice to indicating the torsional modes.

    -
    -
    -
    - -
    -
    -GetVdwMatrix(threshold=0.4) ndarray | None#
    -

    Get the derived Van der Waals matrix, which can be used to analyze -the collision of atoms. More information can be found from generate_vdw_mat.

    -
    -
    Parameters:
    -

    threshold – float indicating the threshold to use in the vdw matrix

    -
    -
    Returns:
    -

    Optional[np.ndarray] – A 2D array of the derived Van der Waals Matrix, if the -the matrix exists, otherwise None.

    -
    -
    -
    - -
    -
    -HasCollidingAtoms(threshold=0.4) ndarray#
    -
    -
    Parameters:
    -

    threshold – float indicating the threshold to use in the vdw matrix

    -
    -
    -
    - -
    -
    -HasOwningMol()#
    -

    Whether the conformer has a owning molecule.

    -
    -
    Returns:
    -

    boolTrue if the conformer has a owning molecule.

    -
    -
    -
    - -
    -
    -SetAllTorsionsDeg(angles: list)#
    -

    Set the dihedral angles of all torsional modes (rotors) of the Conformer. The sequence of the -values are corresponding to the torsions of the molecule (GetTorsionalModes).

    -
    -
    Parameters:
    -

    angles (list) – A list of dihedral angles of all torsional modes.

    -
    -
    -
    - -
    -
    -SetAngleDeg(atomIds: Sequence[int], value: int | float) float#
    -

    Set the angle between atoms in degrees.

    -
    -
    Parameters:
    -
      -
    • atomIds (Sequence) – A 3-element sequence object containing atom indexes.

    • -
    • value (int or float, optional) – Bond angle in degrees.

    • -
    -
    -
    -
    - -
    -
    -SetAngleRad(atomIds: Sequence[int], value: int | float) float#
    -

    Set the angle between atoms in rads.

    -
    -
    Parameters:
    -
      -
    • atomIds (Sequence) – A 3-element sequence object containing atom indexes.

    • -
    • value (int or float, optional) – Bond angle in rads.

    • -
    -
    -
    -
    - -
    -
    -SetBondLength(atomIds: Sequence[int], value: int | float) float#
    -

    Set the bond length between atoms in Angstrom.

    -
    -
    Parameters:
    -
      -
    • atomIds (Sequence) – A 3-element sequence object containing atom indexes.

    • -
    • value (int or float, optional) – Bond length in Angstrom.

    • -
    -
    -
    -
    - -
    -
    -SetOwningMol(owningMol: RDKitMol | Mol | RWMol)#
    -

    Set the owning molecule of the conformer. It can be either RDKitMol -or Chem.rdchem.Mol.

    -
    -
    Parameters:
    -

    owningMol – Union[RDKitMol, Chem.rdchem.Mol] The owning molecule of the conformer.

    -
    -
    Raises:
    -

    ValueError – Not a valid owning_mol input, when giving something else.

    -
    -
    -
    - -
    -
    -SetPositions(coords: tuple | list)#
    -

    Set the Positions of atoms of the conformer.

    -
    -
    Parameters:
    -

    coords – a list of tuple of atom coordinates.

    -
    -
    -
    - -
    -
    -SetTorsionDeg(torsion: list, degree: float | int)#
    -

    Set the dihedral angle of the torsion in degrees. The torsion can only be defined -by a chain of bonded atoms.

    -
    -
    Parameters:
    -
      -
    • torsion (list) – A list of four atom indexes.

    • -
    • degree (float, int) – The dihedral angle of the torsion.

    • -
    -
    -
    -
    - -
    -
    -SetTorsionalModes(torsions: list | tuple)#
    -

    Set the torsional modes (rotors) of the Conformer. This is useful when the -default torsion is not correct.

    -
    -
    Parameters:
    -

    torsions (Union[list, tuple]) – A list of four-atom-lists indicating the torsional modes.

    -
    -
    Raises:
    -

    ValueError – The torsional mode used is not valid.

    -
    -
    -
    - -
    -
    -ToConformer() Conformer#
    -

    Get its backend RDKit Conformer object.

    -
    -
    Returns:
    -

    Conformer – The backend conformer

    -
    -
    -
    - -
    -
    -ToMol() RDKitMol#
    -

    Convert conformer to mol.

    -
    -
    Returns:
    -

    RDKitMol – The new mol generated from the conformer

    -
    -
    -
    - -
    - -
    -
    -rdmc.conf.edit_conf_by_add_bonds(conf, function_name, atoms, value)#
    -

    RDKit forbids modifying internal coordinates with non-bonding atoms. -This function tries to provide a workaround.

    -
    -
    Parameters:
    -
      -
    • conf (RDKitConf) – The conformer to be modified.

    • -
    • function_name (str) – The function name of the edit.

    • -
    • atoms (list) – A list of atoms representing the internal coordinates.

    • -
    • value (float) – Value to be set.

    • -
    -
    -
    -
    - +
    +

    rdmc.conf#

    @@ -1089,61 +497,6 @@