Click or drag to resize

Molecule Class

Molecule Class representing a molecule.
Inheritance Hierarchy

Namespace:  Scilligence.MolEngine
Assembly:  Scilligence.MolEngine (in Scilligence.MolEngine.dll) Version: 1.3.0.0 (7.0.0.39951)
Syntax
C#
public class Molecule : MolBase

The Molecule type exposes the following members.

Constructors
  NameDescription
Public methodMolecule
Construct a blank Molecule object.
Public methodMolecule(ABSet)
Construct a Molecule object and initialize it with atoms and bonds from src.
Top
Properties
  NameDescription
Public propertyAtoms
The collection contains all atoms.
(Overrides MolBaseAtoms.)
Public propertyBonds
The collection contains all bonds.
(Overrides MolBaseBonds.)
Public propertyCanonicalCode
Canonical Code of the structure
(Inherited from MolBase.)
Public propertyChiralities
Public propertyComposition
Returns element composition
Public propertyExactMass
Returns the molecular exact mass
Public propertyExSMILES
Extended SMILES string
(Inherited from MolBase.)
Public propertyFingerprints
The fingerprints of the structure. (documents)
(Inherited from MolBase.)
Public propertyFingerprintsAsString
The string version of the fingerprints of the structure. (link)
(Inherited from MolBase.)
Public propertyFormula
Formula in plain-text
(Inherited from MolBase.)
Public propertyFormulaHtml
Formula in HTML
(Inherited from MolBase.)
Public propertyFormulaSearchable
Normalized searchable formula
(Inherited from MolBase.)
Public propertyHashCode
Compute the topological hash code of molecule. Each identical chemical structure has its own hash code.
Public propertyHashCodeRelax
Compute the topological hash code of molecule, but ignore stereochemistry.
Public propertyInChI
Returns the InChI (The IUPAC International Chemical Identifier). InChI extension has to be installed to call this function. If not installed, it always return null.
Public propertyInChIKey
InChIKey is hashed InChI, which is more efficient to be used as structure key.
Public propertyIsEmpty
Test if the Molecule is empty.
(Overrides MolBaseIsEmpty.)
Public propertyIUPACName
Public propertyIUPACNameHtml
Public propertyMolWeight
Returns the molecular weight
Public propertyMolWeightKnown
Public propertyOrderedAtoms
Get ordered atom list.
Public propertyPSA
Returns the molecule t-PSA (Topological Polar Surface Area), which is invented by Peter Ertl etc.
Public propertySet
The collection contains all atoms and bonds.
Public propertySMILES
SMILES string
(Inherited from MolBase.)
Public propertySSSR
Returns Smallest Set of Smallest Rings (SSSR) from the molecule topological graph.
Public propertyStructureKeys
A higher level of structure characterization (link)
(Inherited from MolBase.)
Public propertyStructureKeysAsString
The string version of StructureKeys
(Inherited from MolBase.)
Top
Methods
  NameDescription
Public methodAddMixtureBracket
Public methodAromatize (Inherited from MolBase.)
Public methodBondedAtoms
Find all connected bonds of a given atom
Public methodBreakMetalBonds
Break metal bonds
Public methodCheckHELMMonomer
Public methodCleanup
Change atoms' position to make the structure looks nicer. If no coordinates, new 2D coordinates will be assigned. If it is a reaction, it also re-layout the reaction components.
(Inherited from MolBase.)
Public methodCleanup(SetAtom)
Change atoms's position to make the structure looks nicers
(Inherited from MolBase.)
Public methodCleanupIfNoCoordinates (Inherited from MolBase.)
Public methodClear
Clear all contained objects, including atoms and bonds.
Public methodClearColor
Clear Atom/Bond colors
Public methodClearRxnMapping (Inherited from MolBase.)
Public methodCLogP
Public methodClone
Clone the molecule.
Public methodClone2
Public methodComputeHashCode
Public methodConnectFragments
Public methodConnectMulticenter
Public methodConvertAttachPoints2Rs
Public methodConvertRs2AttachPoints
Public methodConvertTo3D
Generate 3D coordinates. ForceField extension has to be installed.
Public methodCopyTo(Molecule)
Copy all objects, including atoms and bonds, to another molecule.
Public methodCopyTo(Molecule, DictionaryBaseObj, BaseObj)
Protected methodCopyToImp
Public methodCorrectMolChiral
Public methodCorrectNitroGroup
Public methodCountAtoms(Int32)
Count atoms
Public methodCountAtoms(String)
Count atoms
Public methodCountRings
Count atoms
Public methodDekekulize
Convert rings to aromatic
(Inherited from MolBase.)
Public methodDetectChirality
Public methodDump
Dump all contents to console for debugging purpose
Public methodElementalAnalysis
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodEqualsTo
Test if this molecule is topologically identical to the query molecule
Public methodExpandAllBios (Inherited from MolBase.)
Public methodExpandSuperAtoms(Boolean)
Public methodExpandSuperAtoms(DictionaryAtom, ABSet)
Public methodExpandSuperAtoms(DictionaryAtom, ABSet, Boolean)
Public methodExpandSuperAtoms(DictionaryAtom, ABSet, DictionaryBaseObj, BaseObj)
Public methodExpandSuperAtoms(DictionaryAtom, ABSet, DictionaryBaseObj, BaseObj, Boolean)
Public methodExpandSuperAtomsAndCleanup
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodFindBond (Inherited from MolBase.)
Public methodFindBonds (Inherited from MolBase.)
Public methodFindFirstBond (Inherited from MolBase.)
Public methodFlattenMol
Public methodFormalCharge
Compute the neat formal charges of the molecule, which actually add all atom formal charges together.
Public methodStatic memberFormula2ExactMass
Public methodStatic memberFormula2MolWeight
Public methodGetAllChiralCenters
Public methodGetAllMarkedChiralCenters
Public methodGetAllUnmarkedChiralCenters
Public methodGetAtomByAtomMap
Public methodGetAtomByAtomType
Public methodGetAtomCIP
Returns Atom stereochemistry CIP
Public methodGetBound
Get the 3D bounds of this molecule.
(Overrides MolBaseGetBound.)
Public methodGetCanonicalCode
Create the canonical code
(Inherited from MolBase.)
Public methodGetExtinctionCoefficient
Protected methodGetFingerprints (Overrides MolBaseGetFingerprints.)
Public methodGetFormula
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetHelm
Public methodGetInChI (Inherited from MolBase.)
Public methodGetIsotopicAtoms
Public methodGetJSDraw (Inherited from MolBase.)
Public methodGetMFwithSalt
Public methodGetMolfile (Inherited from MolBase.)
Protected methodGetMolWeight
Public methodGetMWwithSalt
Public methodGetRadar(Int32, Single)
Draw a radar chart to visualize druglikeness of the molecular using MW, CLogP, NoHA, NoHD, NoRB, tPSA
Public methodGetRadar(Int32, Int32, Single)
Public methodGetRadar(Int32, Int32, Single, MolDrawingFormat)
Return the image bytes of the radar chart
Public methodGetRGroups
Find all R groups.
Public methodGetSequence
Public methodGetSequenceComments
Public methodGetSequences
Public methodGetSequences(Boolean)
Public methodGetSMILES (Inherited from MolBase.)
Protected methodGetStructureKeys (Overrides MolBaseGetStructureKeys.)
Public methodGetTexts (Overrides MolBaseGetTexts.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodGetUnknownBonds
Public methodGetVariableAtoms
Public methodGuessBond
Public methodGuessSuperAtoms
Public methodHasAromaticBonds
Public methodHasBio
Public methodHasCoordinates (Overrides MolBaseHasCoordinates.)
Public methodHasEnhancedStereochemistry
Public methodHasEnhancedStereochemistry(String, Boolean)
Public methodHasHelmNodes
Public methodHasQueryAtoms
Public methodHasRGroups
Test if the molecule contains any R group. R group defines a structure variable.
Public methodHasStereoCenter
Public methodHasSuperAtom
Public methodHasUnmarkedChiralCenter
Public methodHasUnmarkedChiralCenter(Boolean)
Public methodHasZCoordinates
Test if the atoms have Z coordaintes
(Overrides MolBaseHasZCoordinates.)
Public methodHighlight
Highlight scaffold with a given color
Public methodIsGenericStructure
Public methodIsMacroMolecule
Public methodKekulize
Convert aromatic rings into kekule form
(Inherited from MolBase.)
Public methodLayoutScaffold
Public methodMarkLockedAtomExcluded
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodMerge(Molecule)
Merge from all contents of a molecule
Public methodMerge(DictionaryAtom, Atom, ABSet)
Public methodMerge(Atom, Atom, ABSet)
Public methodmZ
Public methodNeedV3000 (Overrides MolBaseNeedV3000.)
Public methodNeutralize
Neutrialize atom charges
Public methodNeutralizeIonBonds
Neutralize ionic bonds
Public methodNeutralizeIonBonds(SetAtom)
Public methodStatic memberNormalizeFormula
Normalize the molecular formula
Public methodStatic memberNormalizeFormulaWithCharges
Public methodNumberOfHydrogenAcceptors
Compute the total number of hydrogen bond acceptors.
Public methodNumberOfHydrogenDonors
Compute the total number of hydrogen bond donors.
Public methodNumberOfRotableBonds
Public methodNumberOfRotatableBonds
Compute the total number of rotable bonds. Rotatable bond is defined as any single non-ring bond, bounded to nonterminal heavy (i.e., non-hydrogen) atom
Public methodStatic memberParseChirality
Public methodStatic memberParseMoleculeType
Public methodStatic memberRead(Byte)
Try to open a binary data, which could be a binary file, for a compress file
Public methodStatic memberRead(Stream)
Read from a stream, which can be any chemical file format
Public methodStatic memberRead(String)
Try to parse a generic chemical string, which could be SMILES, InChI, MolFile or other chemical string
Public methodStatic memberRead(Byte, String)
Try to open a known binary data
Public methodStatic memberRead(Byte, String)
Try to open a binary data, which could be a binary file, for a compress file
Public methodStatic memberRead(Stream, String)
Read from a stream, and the file format is known
Public methodStatic memberRead(Stream, String)
Read from a stream, which can be any chemical file format
Public methodStatic memberRead(String, String)
Parse a known chemical string
Public methodStatic memberRead(String, String)
Try to parse a chemical string
Public methodStatic memberReadFile
Try to open a file
Public methodStatic memberReadHelm(String)
Public methodStatic memberReadHelm(String, String)
Public methodStatic memberReadInChI
Parse a InChI string
Public methodStatic memberReadName(String)
Parse a chemical name string
Public methodStatic memberReadName(String, Boolean)
Public methodStatic memberReadSMILES
Parse a SMILES string
Public methodRelayoutMols
Public methodRemoveAtomIsotopes
Public methodRemoveAtomMaps (Overrides MolBaseRemoveAtomMaps.)
Public methodRemoveDummyBonds
Public methodRemoveHydrogens (Inherited from MolBase.)
Public methodRemoveHydrogens(Boolean)
Remove all explicit hydrogen atoms
(Overrides MolBaseRemoveHydrogens(Boolean).)
Public methodResetAtomID
Reset atom ID, starting from 1
Public methodResetAtomID(Int32)
Reset atom ID, starting from a given number
Public methodSaltStripping
Strip salts and solvates
Public methodSaveImage(String)
Generate an image for the structure
(Inherited from MolBase.)
Public methodSaveImage(Stream, String, Double) (Inherited from MolBase.)
Public methodSaveImage(Stream, String, Boolean, Boolean)
Generate an image for the structure
(Inherited from MolBase.)
Public methodSaveImage(String, Int32, Int32, Int32) (Inherited from MolBase.)
Public methodSaveImage(String, Int32, Int32, Int32, Boolean) (Inherited from MolBase.)
Public methodSaveImage(Stream, String, Int32, Int32, Int32, Int32, Int32)
Generate structure image
(Inherited from MolBase.)
Public methodSaveImage(Stream, String, Int32, Int32, Int32, Int32, Int32, Single) (Inherited from MolBase.)
Public methodSaveImage(Stream, String, Int32, Int32, Int32, Int32, Int32, Boolean, Boolean)
Generate structure image
(Inherited from MolBase.)
Public methodSaveImage(Stream, String, Int32, Int32, Int32, Int32, Int32, Single, Boolean, Boolean) (Inherited from MolBase.)
Public methodSaveImage(Stream, String, Double, Int32, Int32, Int32, Int32, Int32, Single, Boolean, Boolean) (Inherited from MolBase.)
Public methodSetColor
Public methodSetModified
Mark this molecule modified, so cached topological data, such as SSSR, will be invalidated.
Public methodSplitAsMol
Split fragments to different Molecule
Public methodSplitAsSet
Split fragments to different atom-bond set
Public methodStripSalts
Public methodSubstructureOf
Test if the molecule is a substructure of the input query
Public methodSuperstructureOf
Test if the molecule is a super structure of the input query
Public methodStatic memberTanimotoSimilarity(Byte, Byte)
Compute the Tanimoto Coefficient of two fingerprints.
Public methodStatic memberTanimotoSimilarity(Molecule, Molecule)
Public methodToHtmlImgData (Inherited from MolBase.)
Public methodToHtmlImgTag (Inherited from MolBase.)
Public methodToImage
Generate an image of the structure
(Inherited from MolBase.)
Public methodToImage(Int32, Int32, Int32)
Generate an image of the structure
(Inherited from MolBase.)
Public methodToImage(Int32, Int32, Int32, Boolean)
Generate an image of the structure
(Inherited from MolBase.)
Public methodToMetafile
Generate a vector image, which is resizable
(Inherited from MolBase.)
Public methodToMetafile(Boolean)
Generate a vector image, which is resizable
(Inherited from MolBase.)
Public methodToMetafile(Single, Boolean) (Inherited from MolBase.)
Public methodToString (Inherited from MolBase.)
Public methodToString(String)
Serialize the object to a string
(Inherited from MolBase.)
Public methodTranslate
Translate the whole structure
(Inherited from MolBase.)
Public methodWrite(String)
Write object into a file
(Inherited from MolBase.)
Public methodWrite(Stream, String)
Store the object into a stream
(Inherited from MolBase.)
Public methodWrite(Stream, String, Boolean)
Store the object into a stream
(Inherited from MolBase.)
Public methodXLogP
Compute XLogP of the molcule. ForceField extension has to be installed. It returns NaN if not installed.
Top
Fields
  NameDescription
Public fieldAttributes (Inherited from MolBase.)
Protected fieldcano (Inherited from MolBase.)
Public fieldchiral
Public fieldMolName (Inherited from MolBase.)
Public fieldNotSearchable (Inherited from MolBase.)
Protected fieldset
Public fieldSource (Inherited from MolBase.)
Public fieldTag (Inherited from MolBase.)
Top
Examples
Molecule reactant = Molecule.ReadSMILES("c1ccccc1Cl");
See Also