Package org.helm.notation2.tools
Class SMILES
java.lang.Object
org.helm.notation2.tools.SMILES
public final class SMILES extends Object
SMILES class to generate SMILES
- Author:
- hecht
-
Constructor Summary
Constructors Constructor Description SMILES() -
Method Summary
Modifier and Type Method Description static booleancontainsGenericStructurePolymer(List<org.helm.notation2.parser.notation.polymer.PolymerNotation> polymers)method if the any of the given PolymerNotation contains generic structuresstatic StringconvertMolToSMILESWithAtomMapping(String molfile, List<Attachment> attachments)Converts molfile with the given attachments in smiles with atom mappingstatic StringgetCanonicalSMILESForAll(org.helm.notation2.parser.notation.HELM2Notation helm2notation)method to generate canonical smiles for the whole HELMNotationstatic StringgetCanonicalSMILESForPolymer(org.helm.notation2.parser.notation.polymer.PolymerNotation polymer)method to generate canonical smiles for one single PolymerNotationstatic StringgetSMILESForAll(org.helm.notation2.parser.notation.HELM2Notation helm2notation)method to generate smiles for the whole HELMNotationstatic StringgetSMILESforPolymer(org.helm.notation2.parser.notation.polymer.PolymerNotation polymer)method to generate smiles for one single PolymerNotationstatic StringgetUniqueExtendedSMILES(String smiles)static booleanisConnected(String molfile)returns if structure is connected
-
Constructor Details
-
SMILES
public SMILES()
-
-
Method Details
-
getSMILESForAll
public static String getSMILESForAll(org.helm.notation2.parser.notation.HELM2Notation helm2notation) throws BuilderMoleculeException, org.helm.chemtoolkit.CTKException, ChemistryExceptionmethod to generate smiles for the whole HELMNotation- Parameters:
helm2notation- input HELMNotation- Returns:
- smiles for the whole HELMNotation
- Throws:
BuilderMoleculeException- if the molecule can't be builtorg.helm.chemtoolkit.CTKException- general ChemToolKit exception passed to HELMToolKitChemistryException- if the Chemistry Engine can not be initialized
-
getCanonicalSMILESForAll
public static String getCanonicalSMILESForAll(org.helm.notation2.parser.notation.HELM2Notation helm2notation) throws BuilderMoleculeException, org.helm.chemtoolkit.CTKSmilesException, org.helm.chemtoolkit.CTKException, NotationException, ChemistryExceptionmethod to generate canonical smiles for the whole HELMNotation- Parameters:
helm2notation- input HELMNotation- Returns:
- canonical smiles for the whole HELMNotation
- Throws:
BuilderMoleculeException- if the molecule can't be builtorg.helm.chemtoolkit.CTKSmilesException- if it contains an invalid smilesorg.helm.chemtoolkit.CTKException- general ChemToolKit exception passed to HELMToolKitNotationException- if notation is not validChemistryException- if the Chemistry Engine can not be initialized
-
containsGenericStructurePolymer
public static boolean containsGenericStructurePolymer(List<org.helm.notation2.parser.notation.polymer.PolymerNotation> polymers) throws HELM2HandledException, ChemistryException, IOException, org.helm.chemtoolkit.CTKExceptionmethod if the any of the given PolymerNotation contains generic structures- Parameters:
polymers- list of polymernotations- Returns:
- true, if it contains generic structure, false otherwise
- Throws:
HELM2HandledException- if it contains HELM2 specific features, so that it can not be casted to HELM1 FormatChemistryException- if chemistry engine can not be initializedIOException- if monomer can not be read by chemistryorg.helm.chemtoolkit.CTKException- general ChemToolKit exception passed to HELMToolKit
-
getUniqueExtendedSMILES
- Parameters:
smiles- given smiles- Returns:
- unique extended smiles
-
getCanonicalSMILESForPolymer
public static String getCanonicalSMILESForPolymer(org.helm.notation2.parser.notation.polymer.PolymerNotation polymer) throws BuilderMoleculeException, HELM2HandledException, org.helm.chemtoolkit.CTKSmilesException, org.helm.chemtoolkit.CTKException, NotationException, ChemistryExceptionmethod to generate canonical smiles for one single PolymerNotation- Parameters:
polymer- PolymerNotation- Returns:
- smiles for the sinlge given PolymerNotation
- Throws:
BuilderMoleculeException- if the molecule can't be builtHELM2HandledException- if it contains HELM2 specific features, so that it can not be casted to HELM1 Formatorg.helm.chemtoolkit.CTKSmilesException- if it contains an invalid smilesorg.helm.chemtoolkit.CTKException- general ChemToolKit exception passed to HELMToolKitNotationException- if notation is not validChemistryException- if the Chemistry Engine can not be initialized
-
getSMILESforPolymer
public static String getSMILESforPolymer(org.helm.notation2.parser.notation.polymer.PolymerNotation polymer) throws BuilderMoleculeException, HELM2HandledException, org.helm.chemtoolkit.CTKSmilesException, org.helm.chemtoolkit.CTKException, NotationException, ChemistryExceptionmethod to generate smiles for one single PolymerNotation- Parameters:
polymer- PolymerNotation- Returns:
- smiles for the sinlge given PolymerNotation
- Throws:
BuilderMoleculeException- if the molecule can't be builtHELM2HandledException- if it contains HELM2 specific features, so that it can not be casted to HELM1 Formatorg.helm.chemtoolkit.CTKSmilesException- if it contains an invalid smilesorg.helm.chemtoolkit.CTKException- general ChemToolKit exception passed to HELMToolKitNotationException- if notation is not validChemistryException- if the Chemistry Engine can not be initialized
-
convertMolToSMILESWithAtomMapping
public static String convertMolToSMILESWithAtomMapping(String molfile, List<Attachment> attachments) throws org.helm.chemtoolkit.CTKException, ChemistryExceptionConverts molfile with the given attachments in smiles with atom mapping- Parameters:
molfile- given molfileattachments- given attachments of the molfile- Returns:
- smiles with atom mapping
- Throws:
org.helm.chemtoolkit.CTKException- if the molfile can not be converted to smilesChemistryException- if the Chemistry Engine can not be initialized
-
isConnected
public static boolean isConnected(String molfile) throws org.helm.chemtoolkit.CTKException, ChemistryExceptionreturns if structure is connected- Parameters:
molfile-- Returns:
- boolean if structure is connected
- Throws:
org.helm.chemtoolkit.CTKExceptionChemistryException
-