Click or drag to resize

Sketch Class

Sketch Class representing a generic sketch, which could be one Molecule, Reaction, or many structure with annotation text and shapes. Call AsReaction() to test if it is a Reaction; AsMolecule() to test if it is a Molecule. Sketch contains Atom, Bond, Arrow, Text, Plus objects.
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 Sketch : Molecule

The Sketch type exposes the following members.

Constructors
  NameDescription
Public methodSketch
Construct a blank sketch object
Public methodSketch(ABSet)
Construct a sketch object from atom-bond collection
Public methodSketch(MolBase)
Construct a sktech object from a Molecule, Reaction or another Sketch
Top
Properties
  NameDescription
Public propertyAtoms
The collection contains all atoms.
(Inherited from Molecule.)
Public propertyBonds
The collection contains all bonds.
(Inherited from Molecule.)
Public propertyCanonicalCode
Canonical Code of the structure
(Inherited from MolBase.)
Public propertyChiralities (Inherited from Molecule.)
Public propertyComposition
Returns element composition
(Inherited from Molecule.)
Public propertyExactMass
Returns the molecular exact mass
(Inherited from Molecule.)
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.
(Inherited from Molecule.)
Public propertyHashCodeRelax
Compute the topological hash code of molecule, but ignore stereochemistry.
(Inherited from Molecule.)
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.
(Inherited from Molecule.)
Public propertyInChIKey
InChIKey is hashed InChI, which is more efficient to be used as structure key.
(Inherited from Molecule.)
Public propertyIsEmpty (Overrides MoleculeIsEmpty.)
Public propertyIUPACName (Inherited from Molecule.)
Public propertyIUPACNameHtml (Inherited from Molecule.)
Public propertyMolWeight
Returns the molecular weight
(Inherited from Molecule.)
Public propertyMolWeightKnown (Inherited from Molecule.)
Public propertyObjects
All objects except Atom and Bond, includiing Arrow, Text and Plus
Public propertyOrderedAtoms
Get ordered atom list.
(Inherited from Molecule.)
Public propertyPSA
Returns the molecule t-PSA (Topological Polar Surface Area), which is invented by Peter Ertl etc.
(Inherited from Molecule.)
Public propertySet
The object contains of the sketch, which can be Atom, Bond, Arrow, Text and Plus
Public propertySMILES
SMILES string
(Inherited from MolBase.)
Public propertySSSR
Returns Smallest Set of Smallest Rings (SSSR) from the molecule topological graph.
(Inherited from Molecule.)
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 (Inherited from Molecule.)
Public methodAllTexts
Public methodAromatize (Inherited from MolBase.)
Public methodAsReaction
Create a Reaction object based on the sketch. To be a Reaction, the sketch has to have one Arrow, and some structure in either or both side
Public methodBackupEnhanceStereoChemistry
Public methodBondedAtoms
Find all connected bonds of a given atom
(Inherited from Molecule.)
Public methodBreakMetalBonds
Break metal bonds
(Inherited from Molecule.)
Public methodCheckHELMMonomer (Inherited from Molecule.)
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.
(Inherited from Molecule.)
Public methodClearColor
Clear Atom/Bond colors
(Inherited from Molecule.)
Public methodClearRxnMapping (Inherited from MolBase.)
Public methodCLogP (Inherited from Molecule.)
Public methodClone (Overrides MoleculeClone.)
Public methodClone2 (Overrides MoleculeClone2(DictionaryBaseObj, BaseObj).)
Public methodComputeHashCode (Inherited from Molecule.)
Public methodConnectFragments (Inherited from Molecule.)
Public methodConnectMulticenter (Inherited from Molecule.)
Public methodConvertAttachPoints2Rs (Inherited from Molecule.)
Public methodConvertRs2AttachPoints (Inherited from Molecule.)
Public methodConvertTo3D
Generate 3D coordinates. ForceField extension has to be installed.
(Inherited from Molecule.)
Public methodCopyTo(Molecule)
Copy all objects, including atoms and bonds, to another molecule.
(Inherited from Molecule.)
Public methodCopyTo(Molecule, DictionaryBaseObj, BaseObj) (Inherited from Molecule.)
Protected methodCopyToImp (Overrides MoleculeCopyToImp(Molecule, DictionaryBaseObj, BaseObj).)
Public methodCorrectMolChiral (Inherited from Molecule.)
Public methodCorrectNitroGroup (Inherited from Molecule.)
Public methodCountAtoms(Int32)
Count atoms
(Inherited from Molecule.)
Public methodCountAtoms(String)
Count atoms
(Inherited from Molecule.)
Public methodCountRings
Count atoms
(Inherited from Molecule.)
Public methodCountTextFields(String)
Public methodCountTextFields(Regex)
Public methodDekekulize
Convert rings to aromatic
(Inherited from MolBase.)
Public methodDetectChirality (Overrides MoleculeDetectChirality.)
Public methodDetectMoleculeType
Public methodDump
Dump all contents to console for debugging purpose
(Inherited from Molecule.)
Public methodElementalAnalysis (Inherited from Molecule.)
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
(Inherited from Molecule.)
Public methodExpandAllBios (Inherited from MolBase.)
Public methodExpandSuperAtoms(Boolean) (Inherited from Molecule.)
Public methodExpandSuperAtoms(DictionaryAtom, ABSet) (Inherited from Molecule.)
Public methodExpandSuperAtoms(DictionaryAtom, ABSet, Boolean) (Inherited from Molecule.)
Public methodExpandSuperAtoms(DictionaryAtom, ABSet, DictionaryBaseObj, BaseObj) (Inherited from Molecule.)
Public methodExpandSuperAtoms(DictionaryAtom, ABSet, DictionaryBaseObj, BaseObj, Boolean) (Inherited from Molecule.)
Public methodExpandSuperAtomsAndCleanup (Inherited from Molecule.)
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 (Inherited from Molecule.)
Public methodFormalCharge
Compute the neat formal charges of the molecule, which actually add all atom formal charges together.
(Inherited from Molecule.)
Public methodGetAllChiralCenters (Inherited from Molecule.)
Public methodGetAllMarkedChiralCenters (Inherited from Molecule.)
Public methodGetAllObjectsT
Public methodGetAllUnmarkedChiralCenters (Inherited from Molecule.)
Public methodGetAtomByAtomMap (Inherited from Molecule.)
Public methodGetAtomByAtomType (Inherited from Molecule.)
Public methodGetAtomCIP
Returns Atom stereochemistry CIP
(Inherited from Molecule.)
Public methodGetBound (Overrides MoleculeGetBound.)
Public methodGetBracketDataFields
Public methodGetBrackets
Public methodGetCanonicalCode
Create the canonical code
(Inherited from MolBase.)
Public methodGetChiralAtom
Public methodGetDataFields
Public methodGetEnhanceStereo
Public methodGetExtinctionCoefficient (Inherited from Molecule.)
Protected methodGetFingerprints (Inherited from Molecule.)
Public methodGetFormula (Inherited from Molecule.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetHelm (Inherited from Molecule.)
Public methodGetInChI (Inherited from MolBase.)
Public methodGetIsotopicAtoms (Inherited from Molecule.)
Public methodGetJSDraw (Inherited from MolBase.)
Public methodGetMFwithSalt (Inherited from Molecule.)
Public methodGetMoleculeBrackets
Public methodGetMolfile (Inherited from MolBase.)
Protected methodGetMolWeight (Overrides MoleculeGetMolWeight(Boolean).)
Public methodGetMWwithSalt (Inherited from Molecule.)
Public methodGetRadar(Int32, Single)
Draw a radar chart to visualize druglikeness of the molecular using MW, CLogP, NoHA, NoHD, NoRB, tPSA
(Inherited from Molecule.)
Public methodGetRadar(Int32, Int32, Single) (Inherited from Molecule.)
Public methodGetRadar(Int32, Int32, Single, MolDrawingFormat)
Return the image bytes of the radar chart
(Inherited from Molecule.)
Public methodGetRGroups
Find all R groups.
(Inherited from Molecule.)
Public methodGetSequence (Inherited from Molecule.)
Public methodGetSequenceComments (Inherited from Molecule.)
Public methodGetSequences (Inherited from Molecule.)
Public methodGetSequences(Boolean) (Inherited from Molecule.)
Public methodGetSgroupText
Public methodGetSMILES (Inherited from MolBase.)
Protected methodGetStructureKeys (Inherited from Molecule.)
Public methodGetText
Public methodGetTexts (Overrides MoleculeGetTexts.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodGetUnknownBonds (Inherited from Molecule.)
Public methodGetVariableAtoms (Inherited from Molecule.)
Public methodGuessBond (Inherited from Molecule.)
Public methodGuessSuperAtoms (Inherited from Molecule.)
Public methodHasAromaticBonds (Inherited from Molecule.)
Public methodHasBio (Inherited from Molecule.)
Public methodHasCoordinates (Inherited from Molecule.)
Public methodHasEnhancedStereochemistry (Inherited from Molecule.)
Public methodHasEnhancedStereochemistry(String, Boolean) (Overrides MoleculeHasEnhancedStereochemistry(String, Boolean).)
Public methodHasHelmNodes (Inherited from Molecule.)
Public methodHasQueryAtoms (Inherited from Molecule.)
Public methodHasRGroups
Test if the molecule contains any R group. R group defines a structure variable.
(Inherited from Molecule.)
Public methodHasStereoCenter (Inherited from Molecule.)
Public methodHasSuperAtom (Inherited from Molecule.)
Public methodHasUnmarkedChiralCenter (Inherited from Molecule.)
Public methodHasUnmarkedChiralCenter(Boolean) (Inherited from Molecule.)
Public methodHasZCoordinates
Test if the atoms have Z coordaintes
(Inherited from Molecule.)
Public methodHighlight
Highlight scaffold with a given color
(Inherited from Molecule.)
Public methodIsGenericStructure (Overrides MoleculeIsGenericStructure.)
Public methodIsMacroMolecule (Inherited from Molecule.)
Public methodKekulize
Convert aromatic rings into kekule form
(Inherited from MolBase.)
Public methodLayoutScaffold (Inherited from Molecule.)
Public methodMarkAtomChirality
Public methodMarkEnhanceStereoChemistry
Public methodMarkLockedAtomExcluded (Inherited from Molecule.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodMerge(Molecule)
Merge from all contents of a molecule
(Inherited from Molecule.)
Public methodMerge(DictionaryAtom, Atom, ABSet) (Inherited from Molecule.)
Public methodMerge(Atom, Atom, ABSet) (Inherited from Molecule.)
Public methodmZ (Inherited from Molecule.)
Public methodNeedV3000 (Inherited from Molecule.)
Public methodNeutralize
Neutrialize atom charges
(Inherited from Molecule.)
Public methodNeutralizeIonBonds
Neutralize ionic bonds
(Inherited from Molecule.)
Public methodNeutralizeIonBonds(SetAtom) (Inherited from Molecule.)
Public methodNumberOfHydrogenAcceptors
Compute the total number of hydrogen bond acceptors.
(Inherited from Molecule.)
Public methodNumberOfHydrogenDonors
Compute the total number of hydrogen bond donors.
(Inherited from Molecule.)
Public methodNumberOfRotableBonds (Inherited from Molecule.)
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
(Inherited from Molecule.)
Public methodParseADC
Public methodRelayoutMols (Inherited from Molecule.)
Public methodRemoveAtomIsotopes (Inherited from Molecule.)
Public methodRemoveAtomMaps (Inherited from Molecule.)
Public methodRemoveDummyBonds (Inherited from Molecule.)
Public methodRemoveHydrogens (Inherited from MolBase.)
Public methodRemoveHydrogens(Boolean)
Remove all explicit hydrogen atoms
(Inherited from Molecule.)
Public methodRemoveTexts
Public methodResetAtomID
Reset atom ID, starting from 1
(Inherited from Molecule.)
Public methodResetAtomID(Int32)
Reset atom ID, starting from a given number
(Inherited from Molecule.)
Public methodRestoreEnhanceStereoChemistry
Public methodSaltStripping
Strip salts and solvates
(Inherited from Molecule.)
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 (Inherited from Molecule.)
Public methodSetModified
Mark this molecule modified, so cached topological data, such as SSSR, will be invalidated.
(Inherited from Molecule.)
Public methodSetSgroup
Public methodSplitAsMol
Split fragments to different Molecule
(Inherited from Molecule.)
Public methodSplitAsSet
Split fragments to different atom-bond set
(Inherited from Molecule.)
Public methodStripSalts (Inherited from Molecule.)
Public methodSubstructureOf
Test if the molecule is a substructure of the input query
(Inherited from Molecule.)
Public methodSuperstructureOf
Test if the molecule is a super structure of the input query
(Inherited from 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 (Overrides MolBaseTranslate(Point3D).)
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.
(Inherited from Molecule.)
Top
Fields
  NameDescription
Public fieldAttributes (Inherited from MolBase.)
Protected fieldcano (Inherited from MolBase.)
Public fieldchiral (Inherited from Molecule.)
Public fieldMolName (Inherited from MolBase.)
Public fieldNotSearchable (Inherited from MolBase.)
Protected fieldset (Inherited from Molecule.)
Public fieldSource (Inherited from MolBase.)
Public fieldTag (Inherited from MolBase.)
Top
See Also