public class WebService extends Object
| Constructor and Description |
|---|
WebService() |
| Modifier and Type | Method and Description |
|---|---|
Float |
calculateExtinctionCoefficient(String notation)
method to calculate from a non-ambiguous HELM string the extinction
coefficient
|
Double |
calculateMolecularWeight(String notation)
method to calculate from a non-ambiguous HELM input the molecular weight
|
String |
convertIntoStandardHELM(String notation)
method to convert the input HELM into a standard HELM
|
String |
convertStandardHELMToCanonicalHELM(String notation)
method to convert the input HELM into canonical HELM
|
String |
generateCanSMILESForHELM2(String notation)
method to generate a SMILES representation for a whole HELM2 input
|
String |
generateFasta(String notation)
method to generate FASTA-Formats for all rna and peptide sequences from
an HELM input
|
String |
generateHELMFromFastaNucleotide(String notation)
method to generate HELM from a FASTA containing rna/dna sequences
|
String |
generateHELMFromFastaPeptide(String notation)
method to generate HELM from a FASTA containing peptide sequence(s)
|
byte[] |
generateImageForHELMMolecule(String notation)
method to generate a HELM molecule
|
byte[] |
generateImageForMonomer(Monomer monomer,
boolean showRgroups)
method to generate an image for a monomer
|
String |
generateJSON(String helm)
method to generate JSON-Output for the HELM
|
String |
generateNaturalAnalogSequencePeptide(String notation)
method to generate the natural analogue sequence for all
peptide-sequences from an HELM input
|
String |
generateNaturalAnalogSequenceRNA(String notation)
method to generate the natural analogue sequence for all rna-sequences
from an HELM input
|
String |
generateSMILESForHELM2(String notation)
method to generate a SMILES representation for a whole HELM2 input
|
String |
getMolecularFormula(String notation)
method to calculate from a non-ambiguous HELM input the molecular formula
|
List<String> |
getMolecularProperties(String notation)
method to calculate froma non-ambiguous HELM input the molecular
properties: molecular formula, molecular weight, exact mass, extinction
coefficient
|
String |
readPeptide(String peptide)
method to read a single peptide sequence and generates HELM
|
String |
readRNA(String rna)
method to read a single rna sequence and generates HELM
|
void |
validateHELM(String helm)
method to validate the input HELM-String
|
void |
validateSyntaxHELM(String helm) |
public void validateHELM(String helm) throws ValidationException, MonomerLoadingException, ChemistryException
helm - input HELM-stringValidationException - if the input HELM is not validMonomerLoadingException - if the MonomerFactory can not be refreshedChemistryException - if the Chemistry Engine can not be initializedpublic void validateSyntaxHELM(String helm) throws ChemistryException, ParserException, org.jdom2.JDOMException, IOException, MonomerException
ChemistryExceptionParserExceptionorg.jdom2.JDOMExceptionIOExceptionMonomerExceptionpublic String convertStandardHELMToCanonicalHELM(String notation) throws HELM1FormatException, ValidationException, MonomerLoadingException, ChemistryException
notation - HELM inputHELM1FormatException - if HELM input contains HELM2 featuresValidationException - if the HELM input is not validMonomerLoadingException - if the MonomerFactory can not be loadedChemistryException - if the Chemistry Engine can not be initializedpublic String convertIntoStandardHELM(String notation) throws HELM1FormatException, ValidationException, MonomerLoadingException, org.helm.chemtoolkit.CTKException, ChemistryException
notation - HELM inputHELM1FormatException - if the HELM input contains HELM2 featuresValidationException - if the HELM input is not validMonomerLoadingException - if the MonomerFactory can not be loadedorg.helm.chemtoolkit.CTKException - general ChemToolKit exception passed to HELMToolKitChemistryException - if the Chemistry Engine can not be initializedpublic Float calculateExtinctionCoefficient(String notation) throws ExtinctionCoefficientException, ValidationException, MonomerLoadingException, ChemistryException
notation - HELM inputExtinctionCoefficientException - if the extinction coefficient can not be calculatedValidationException - if the HELM input is not validMonomerLoadingException - if the MonomerFactory can not be refreshedChemistryException - if the Chemistry Engine can not be initializedpublic String generateFasta(String notation) throws FastaFormatException, ValidationException, MonomerLoadingException, ChemistryException
notation - HELM inputValidationException - if the HELM input is not validFastaFormatException - if the FASTA-sequences can not be builtMonomerLoadingException - if the MonomerFactory can not be loadedChemistryException - if the Chemistry Engine can not be initializedpublic String generateHELMFromFastaNucleotide(String notation) throws FastaFormatException, org.helm.notation2.parser.exceptionparser.NotationException, ChemistryException, MonomerLoadingException, NucleotideLoadingException
notation - FASTA containing rna/dna sequencesFastaFormatException - if the input is not validorg.helm.notation2.parser.exceptionparser.NotationException - if notation is not validChemistryException - if chemistry engine can not be initializedMonomerLoadingException - if monomers can not be loadedNucleotideLoadingException - if nucleotides can not be loadedpublic String generateHELMFromFastaPeptide(String notation) throws FastaFormatException, MonomerLoadingException, ChemistryException
notation - FASTA containing peptide sequence(s)FastaFormatException - if the FASTA input is not validMonomerLoadingException - if the MonomerFactory can not be loadedChemistryException - if chemistry engine can not be initializedpublic Double calculateMolecularWeight(String notation) throws MonomerLoadingException, BuilderMoleculeException, org.helm.chemtoolkit.CTKException, ValidationException, ChemistryException
notation - HELM inputMonomerLoadingException - if the MonomerFactory can not be refreshedValidationException - if the HELM input is not validBuilderMoleculeException - if the molecule for the calculation can not be builtorg.helm.chemtoolkit.CTKException - general ChemToolKit exception passed to HELMToolKitChemistryException - if the Chemistry Engine can not be initializedpublic String getMolecularFormula(String notation) throws BuilderMoleculeException, org.helm.chemtoolkit.CTKException, ValidationException, MonomerLoadingException, ChemistryException
notation - HELM inputValidationException - if the HELM input is not validBuilderMoleculeException - if the molecule for the calculation can not be builtorg.helm.chemtoolkit.CTKException - general ChemToolKit exception passed to HELMToolKitMonomerLoadingException - if the MonomerFactory can not be refreshedChemistryException - if the Chemistry Engine can not be initializedpublic List<String> getMolecularProperties(String notation) throws BuilderMoleculeException, org.helm.chemtoolkit.CTKException, ExtinctionCoefficientException, ValidationException, MonomerLoadingException, ChemistryException
notation - given HELMList<String> containing the molecule propertiesBuilderMoleculeException - if the molecule can't be builtorg.helm.chemtoolkit.CTKException - general ChemToolKit exception passed to HELMToolKitExtinctionCoefficientException - if extinction coefficient can not be calculatedValidationException - if notation is not validMonomerLoadingException - if monomers can not be loadedChemistryException - if the Chemistry Engine can not be initializedpublic String readPeptide(String peptide) throws FastaFormatException, org.helm.notation2.parser.exceptionparser.NotationException, ChemistryException
peptide - peptide sequenceorg.helm.notation2.parser.exceptionparser.NotationException - if the notation object can not be builtFastaFormatException - if the peptide sequence is not in the right formatChemistryException - if chemistry engine can not be initializedpublic String readRNA(String rna) throws org.helm.notation2.parser.exceptionparser.NotationException, FastaFormatException, ChemistryException, NucleotideLoadingException
rna - rna sequenceorg.helm.notation2.parser.exceptionparser.NotationException - if the notation object can not be builtFastaFormatException - if the rna-sequence is not in the right format HELMChemistryException - if chemistry engine can not be initializedNucleotideLoadingException - if nucleotides can not be loadedpublic byte[] generateImageForHELMMolecule(String notation) throws BuilderMoleculeException, org.helm.chemtoolkit.CTKException, IOException, ValidationException, ChemistryException
notation - HELM stringValidationException - if the HELM string is not validBuilderMoleculeException - if the molecule can't be builtorg.helm.chemtoolkit.CTKException - general ChemToolKit exception passed to HELMToolKitIOException - if the image can not be producedChemistryException - if the Chemistry Engine can not be initializedpublic byte[] generateImageForMonomer(Monomer monomer, boolean showRgroups) throws BuilderMoleculeException, org.helm.chemtoolkit.CTKException, ChemistryException
monomer - Monomer InputshowRgroups - wheter to show the r groups in the imageBuilderMoleculeException - if the molecule can not be builtorg.helm.chemtoolkit.CTKException - general ChemToolKit exception passed to HELMToolKitChemistryException - if the Chemistry Engine can not be initializedpublic String generateJSON(String helm) throws ValidationException, MonomerLoadingException, ChemistryException, com.fasterxml.jackson.core.JsonProcessingException
helm - HELM inputValidationException - if the HELM input is not validMonomerLoadingException - if the MonomerFactory can not be refreshedChemistryException - if the Chemistry Engine can not be initializedcom.fasterxml.jackson.core.JsonProcessingException - if json can not be producedpublic String generateNaturalAnalogSequencePeptide(String notation) throws HELM2HandledException, ValidationException, MonomerLoadingException, PeptideUtilsException, org.helm.notation2.parser.exceptionparser.NotationException, ChemistryException
notation - input HELMorg.helm.notation2.parser.exceptionparser.NotationException - if the input complex notation contains non-peptide polymer(s)HELM2HandledException - if the HELM input contains HELM2 featuresValidationException - if the input HELM is not validMonomerLoadingException - if the MonomerFactory can not be refreshedPeptideUtilsException - if the polymer is not a peptideorg.helm.notation2.parser.exceptionparser.NotationException - if notation is not validChemistryException - if the Chemistry Engine can not be initializedpublic String generateNaturalAnalogSequenceRNA(String notation) throws org.helm.notation2.parser.exceptionparser.NotationException, HELM2HandledException, ValidationException, MonomerLoadingException, ChemistryException
notation - HELM inputorg.helm.notation2.parser.exceptionparser.NotationException - if the input complex notation contains non-nucleid acid
polymer(s)HELM2HandledException - if HELM input contains HELM2 featuresValidationException - if the HELM input is not validMonomerLoadingException - if the MonomerFactory can not be refreshedChemistryException - if the Chemistry Engine can not be initializedpublic String generateSMILESForHELM2(String notation) throws BuilderMoleculeException, org.helm.chemtoolkit.CTKException, ChemistryException, ValidationException, MonomerLoadingException
notation - given helm notationBuilderMoleculeException - if the molecule can't be builtorg.helm.chemtoolkit.CTKException - general ChemToolKit exception passed to HELMToolKitChemistryException - if chemistry engine can not be initializedValidationException - if notation is not validMonomerLoadingException - if monomers can not be loadedpublic String generateCanSMILESForHELM2(String notation) throws BuilderMoleculeException, org.helm.chemtoolkit.CTKException, ChemistryException, ValidationException, MonomerLoadingException, NotationException
notation - given helm notationBuilderMoleculeException - if the molecule can't be builtorg.helm.chemtoolkit.CTKException - general ChemToolKit exception passed to HELMToolKitChemistryException - if chemistry engine can not be initializedValidationException - if notation is not validMonomerLoadingException - if monomers can not be loadedNotationException - if notation is not validCopyright © 2017. All rights reserved.