Click or drag to resize

Reaction Class

Reaction Class representing a single-step chemical reaction, which is composed of reactants, products and an arrow
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 Reaction : MolBase

The Reaction type exposes the following members.

Constructors
Properties
  NameDescription
Public propertyAtoms
All atoms of reactants and products
(Overrides MolBaseAtoms.)
Public propertyBonds
All bonds of reactants and products
(Overrides MolBaseBonds.)
Public propertyCanonicalCode
Canonical Code of the structure
(Inherited from MolBase.)
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 propertyIsEmpty
Test if the reaction contatins any reactant or product
(Overrides MolBaseIsEmpty.)
Public propertyProducts
An array of products
Public propertyReactants
An array of reactants
Public propertyReagents
Public propertySMILES
SMILES string
(Inherited from MolBase.)
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 methodAddDefaultArrow
Public methodAddProduct
Public methodAddReactant
Public methodAddReagent
Public methodAromatize (Inherited from MolBase.)
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 methodClearRxnMapping
Public methodClearRxnMapping(Int32) (Overrides MolBaseClearRxnMapping(Int32).)
Public methodClone
Clone the whole reaction
Public methodDekekulize
Convert rings to aromatic
(Inherited from MolBase.)
Public methodEqualizeBondLength
Make all bonds have the same bond length
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodExpandAllBios (Inherited from MolBase.)
Public methodExpandSuperAtoms
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 methodGetBound
Get the 3D bounds of the reaction
(Overrides MolBaseGetBound.)
Public methodGetCanonicalCode
Create the canonical code
(Inherited from MolBase.)
Protected methodGetFingerprints (Overrides MolBaseGetFingerprints.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetInChI (Inherited from MolBase.)
Public methodGetJSDraw (Inherited from MolBase.)
Public methodGetMolfile (Inherited from MolBase.)
Public methodGetRxnFile
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 methodHasCoordinates
Test if any molecule has coordinates
(Overrides MolBaseHasCoordinates.)
Public methodHasZCoordinates
Test if any atom has Z coordinates
(Overrides MolBaseHasZCoordinates.)
Public methodKekulize
Convert aromatic rings into kekule form
(Inherited from MolBase.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodNeedV3000 (Overrides MolBaseNeedV3000.)
Public methodProductContains
Public methodReactantContains
Public methodStatic memberRead(Byte)
Read a binary data
Public methodStatic memberRead(Stream)
Read a string
Public methodStatic memberRead(String)
Parse a generic reaction string
Public methodStatic memberRead(Byte, String)
Read a binary data
Public methodStatic memberRead(Byte, String)
Read a binary data, and output the data's file format
Public methodStatic memberRead(Stream, String)
Read a stream
Public methodStatic memberRead(Stream, String)
Read a stream
Public methodStatic memberRead(String, String)
Read a reaction string which file format is known
Public methodStatic memberRead(String, String)
Parse a reaction string, and output the string's file format
Public methodStatic memberReadFile
Read a file
Public methodStatic memberReadSMILES
Parse a SMILES string. e.g. c1ccccc1Cl>>c1ccccc1O
Public methodRelayout(Boolean)
Public methodRelayout(Boolean, Sketch)
Re-layout the reaction to make it looks nicer
Public methodRemoveAtomMaps (Overrides MolBaseRemoveAtomMaps.)
Public methodRemoveHydrogens (Inherited from MolBase.)
Public methodRemoveHydrogens(Boolean)
Remove all hydrogen atoms
(Overrides MolBaseRemoveHydrogens(Boolean).)
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 methodSortByXCoordinates
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 methodToSketch
Convert the Reaction object into a Sketch object
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 methodTreatReagentAsReactant
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.)
Top
Fields
  NameDescription
Public fieldArrow
Public fieldAttributes (Inherited from MolBase.)
Protected fieldcano (Inherited from MolBase.)
Public fieldMolName (Inherited from MolBase.)
Public fieldNotSearchable (Inherited from MolBase.)
Public fieldSource (Inherited from MolBase.)
Public fieldTag (Inherited from MolBase.)
Public fieldtextsabove
Public fieldtextsbelow
Top
Examples
Molecule reactant = Molecule.ReadSMILES("c1ccccc1Cl");
Molecule product  = Molecule.ReadSMILES("c1ccccc1O");
Reaction r = new Reaction(reactant, product);
See Also