public final class MU extends Object
Modifier and Type | Class and Description |
---|---|
static class |
MU.BondList
Represents a bond list.
|
Modifier and Type | Method and Description |
---|---|
static int[] |
atnoArray(Molecule m)
Extract atno array.
|
static double[][] |
atomCoordinates3d(Molecule m)
Extract 3D atom coordinates.
|
static MU.BondList |
bondList(Molecule m)
Extract a bondlist.
|
static int[][] |
ctab(Molecule m)
Extract a ctab.
|
static Molecule |
ofMolSource(String src)
Read a structure from source
|
static Molecule |
ofSmiles(String smiles)
Read a structure from SMILES.
|
static double[] |
ringTorsionsDeg(Molecule m,
int[] atoms)
Calculate ring torsions of specified atoms in degrees.
|
static double[] |
ringTorsionsRad(Molecule m,
int[] atoms)
Calculate ring torsions of specified atoms in radians.
|
static String |
toSmiles(Molecule m)
Convert molecule to SMILES.
|
public static double[] ringTorsionsRad(Molecule m, int[] atoms)
m
- Moleculeatoms
- Atom indicesIllegalArgumentException
- when specified atoms are not part of a ring or less than 4 atoms specifiedpublic static double[] ringTorsionsDeg(Molecule m, int[] atoms)
m
- Moleculeatoms
- Atom indicesIllegalArgumentException
- when specified atoms are not part of a ring or less than 4 atoms specifiedpublic static Molecule ofSmiles(String smiles)
smiles
- SMILES inputIllegalArgumentException
- when parsing failedpublic static Molecule ofMolSource(String src)
src
- Structure sourceIllegalArgumentException
- when parsing failedpublic static String toSmiles(Molecule m)
m
- Molecule to convertIllegalArgumentException
- in case of conversion errorpublic static int[] atnoArray(Molecule m)
m
- Input structureMolAtom.getAtno()
values.public static double[][] atomCoordinates3d(Molecule m)
m
- Input moleculepublic static int[][] ctab(Molecule m)
m
- Input structurepublic static MU.BondList bondList(Molecule m)
m
- Input structure