public abstract class AbstractChemistryManipulator extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
AbstractChemistryManipulator.OutputType
OutputType image type |
static class |
AbstractChemistryManipulator.StType
StType chemical notation type |
| Modifier and Type | Field and Description |
|---|---|
protected static String |
SMILES_EXTENSION_SEPARATOR_REGEX |
| Constructor and Description |
|---|
AbstractChemistryManipulator() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract IBondBase |
bindAtoms(IAtomBase atom1,
IAtomBase atom2) |
abstract String |
canonicalize(String data)
returns canonical smiles
|
abstract String |
convert(String data,
AbstractChemistryManipulator.StType type)
convert input notation to another
|
String |
convertExtendedSmiles(String data)
convert extended smiles format to smiles with atom mappings
|
abstract String |
convertMolecule(AbstractMolecule container,
AbstractChemistryManipulator.StType type)
produces chemical notation for input molecule
|
protected String |
getExtension(String smiles) |
abstract AbstractMolecule |
getMolecule(String smiles,
AttachmentList attachments)
returns a molecule i)nstance of
AbstractMolecule |
abstract MoleculeInfo |
getMoleculeInfo(AbstractMolecule container)
returns molecule info like molecular formula,exact mass and molecular weight
|
protected IAtomBase |
getNeighborAtom(IAtomBase rgroup) |
protected List<String> |
getRGroupsFromExtendedSmiles(String smiles) |
protected abstract IStereoElementBase |
getStereoInformation(AbstractMolecule container,
IAtomBase rGroup,
IAtomBase atom1,
IAtomBase atom2) |
AbstractMolecule |
merge(AbstractMolecule firstContainer,
IAtomBase firstRgroup,
AbstractMolecule secondContainer,
IAtomBase secondRgroup)
merges second molecule to first using given rGroups
|
protected AttachmentList |
mergeAttachments(AbstractMolecule container,
AbstractMolecule secondContainer) |
abstract byte[] |
renderMol(String molFile,
AbstractChemistryManipulator.OutputType outputType,
int width,
int height,
int rgb)
renders a image of given molecule
|
abstract byte[] |
renderSequence(String sequence,
AbstractChemistryManipulator.OutputType outputType,
int width,
int height,
int rgb)
renders a image of molecule
|
protected boolean |
setStereoInformation(AbstractMolecule firstContainer,
IAtomBase firstRgroup,
AbstractMolecule secondContainer,
IAtomBase secondRgroup,
IAtomBase atom1,
IAtomBase atom2)
recycles and set stereo information on firstContaner
|
abstract boolean |
validateSMILES(String smiles) |
protected static final String SMILES_EXTENSION_SEPARATOR_REGEX
public abstract String convertMolecule(AbstractMolecule container, AbstractChemistryManipulator.StType type) throws CTKException
molecule - type - of chemical notationCTKExceptionpublic abstract String convert(String data, AbstractChemistryManipulator.StType type) throws CTKException
data - chemical notation to converttype - type of input data instance of AbstractChemistryManipulator.StTypeCTKExceptionpublic String convertExtendedSmiles(String data)
data - chemical notation to convertpublic abstract boolean validateSMILES(String smiles)
smiles - to validatepublic abstract MoleculeInfo getMoleculeInfo(AbstractMolecule container) throws CTKException
molecule - input AbstractMoleculeCTKException - general ChemToolKit exception passed to HELMToolKitpublic abstract String canonicalize(String data) throws CTKException, CTKSmilesException
smiles - to canonicalizeCTKException - general ChemToolkit exception passed to HELMToolkitCTKSmilesExceptionpublic abstract byte[] renderMol(String molFile, AbstractChemistryManipulator.OutputType outputType, int width, int height, int rgb) throws CTKException
molFile - for renderingoutputType - a image type instance of AbstractChemistryManipulator.OutputTypewidth - the image widthheight - the image heightrgb - a color code of image backgroundCTKExceptionpublic abstract byte[] renderSequence(String sequence, AbstractChemistryManipulator.OutputType outputType, int width, int height, int rgb) throws CTKException
sequence - for renderingoutputType - a image type instance of AbstractChemistryManipulator.OutputTypewidth - the image widthheight - the image heightrgb - a color code of image backgroundCTKExceptionpublic abstract AbstractMolecule getMolecule(String smiles, AttachmentList attachments) throws IOException, CTKException
AbstractMoleculesmiles - smiles stringattachments - instance of AttachmentListAbstractMoleculeIOExceptionCTKExceptionpublic AbstractMolecule merge(AbstractMolecule firstContainer, IAtomBase firstRgroup, AbstractMolecule secondContainer, IAtomBase secondRgroup) throws CTKException
firstContainer - a first molecule to merge instance of AbstractMoleculefirstRgroup - atom of first molecule to be removed, the connected atom is used for merging, instance of
IAtomBasesecondContainer - a second molecule to merge, instance of AbstractMoleculesecondRgroup - of second molecule to be removed, the connected atom is used for merging, instance of
IAtomBaseAbstractMoleculeCTKExceptionprotected boolean setStereoInformation(AbstractMolecule firstContainer, IAtomBase firstRgroup, AbstractMolecule secondContainer, IAtomBase secondRgroup, IAtomBase atom1, IAtomBase atom2) throws CTKException
firstContainer - a first molecule instance of AbstractMoleculefirstRgroup - atom to remove, instance of IAtomBasesecondContainer - a second molecule, instance of AbstractMoleculesecondRgroup - atom to remove, instance of IAtomBaseatom1 - atom connected to firstGroupatom2 - atom connected to secondGroupCTKExceptionprotected List<String> getRGroupsFromExtendedSmiles(String smiles)
extendedSmiles - protected IAtomBase getNeighborAtom(IAtomBase rgroup) throws CTKException
CTKExceptionprotected abstract IBondBase bindAtoms(IAtomBase atom1, IAtomBase atom2) throws CTKException
atom1 - atom2 - CTKExceptionprotected AttachmentList mergeAttachments(AbstractMolecule container, AbstractMolecule secondContainer) throws CTKException
first - second - CTKExceptionprotected abstract IStereoElementBase getStereoInformation(AbstractMolecule container, IAtomBase rGroup, IAtomBase atom1, IAtomBase atom2) throws CTKException
molecule - rGroup - atom - CTKExceptionCopyright © 2016. All rights reserved.