Package org.helm.notation2.tools
Class SequenceConverter
java.lang.Object
org.helm.notation2.tools.SequenceConverter
public final class SequenceConverter extends Object
SequenceConverter class to convert sequence into the HELM2Notation object and
vice versa
- Author:
- hecht
-
Method Summary
Modifier and Type Method Description static StringgetNucleotideNaturalAnalogSequenceFromNotation(org.helm.notation2.parser.notation.HELM2Notation helm2Notation)method to generate for all rna polymers the natural analogue sequencestatic StringgetNucleotideSequenceFromNotation(org.helm.notation2.parser.notation.HELM2Notation helm2notation)method to get for all rna/dnas the nucleotide sequence form an HELM2Notationstatic StringgetPeptideNaturalAnalogSequenceFromNotation(org.helm.notation2.parser.notation.HELM2Notation helm2Notation)method to generate for all peptide polymers the natural analogue sequencestatic StringgetPeptideSequenceFromNotation(org.helm.notation2.parser.notation.HELM2Notation helm2notation)method to get for all peptides the sequencestatic org.helm.notation2.parser.notation.HELM2NotationreadPeptide(String notation)method to read a peptide sequence and generate a HELM2Notation object of itstatic org.helm.notation2.parser.notation.HELM2NotationreadRNA(String notation)method to read a rna/dna sequence and generate a HELM2Notation object of it
-
Method Details
-
readPeptide
public static org.helm.notation2.parser.notation.HELM2Notation readPeptide(String notation) throws FastaFormatException, org.helm.notation2.parser.exceptionparser.NotationException, ChemistryExceptionmethod to read a peptide sequence and generate a HELM2Notation object of it- Parameters:
notation- peptide sequence- Returns:
- HELM2Notation object
- Throws:
FastaFormatException- if the peptide sequence is not in the right formatorg.helm.notation2.parser.exceptionparser.NotationException- if the notation object can not be builtChemistryException- if chemistry engine can not be initialized
-
readRNA
public static org.helm.notation2.parser.notation.HELM2Notation readRNA(String notation) throws FastaFormatException, org.helm.notation2.parser.exceptionparser.NotationException, ChemistryException, NucleotideLoadingExceptionmethod to read a rna/dna sequence and generate a HELM2Notation object of it- Parameters:
notation- rna/dna sequence- Returns:
- HELM2Notation object
- Throws:
FastaFormatException- if the rna/dna sequence is not in the right formatorg.helm.notation2.parser.exceptionparser.NotationException- if the notation object can not be builtChemistryException- if chemistry engine can not be initializedNucleotideLoadingException- if nucleotides can not be loaded
-
getNucleotideSequenceFromNotation
public static String getNucleotideSequenceFromNotation(org.helm.notation2.parser.notation.HELM2Notation helm2notation) throws org.helm.notation2.parser.exceptionparser.NotationException, NucleotideLoadingException, HELM2HandledException, ChemistryExceptionmethod to get for all rna/dnas the nucleotide sequence form an HELM2Notation- Parameters:
helm2notation- input HELM2Notation- Returns:
- rna/dna nucleotide sequences divided with white space
- Throws:
NucleotideLoadingException- if nucleotides can not be loadedorg.helm.notation2.parser.exceptionparser.NotationException- if notation is not validHELM2HandledException- if HELM2 features are involvedChemistryException- if chemistry engine can not be initialized
-
getPeptideSequenceFromNotation
public static String getPeptideSequenceFromNotation(org.helm.notation2.parser.notation.HELM2Notation helm2notation) throws HELM2HandledException, PeptideUtilsException, NotationException, ChemistryExceptionmethod to get for all peptides the sequence- Parameters:
helm2notation- HELM2Notation- Returns:
- rna sequences divided by white space
- Throws:
HELM2HandledException- if the polymer contains HELM2 featuresPeptideUtilsException- if the polymer is not a peptideNotationException- if notation is not validChemistryException- if the Chemistry Engine can not be initialized
-
getNucleotideNaturalAnalogSequenceFromNotation
public static String getNucleotideNaturalAnalogSequenceFromNotation(org.helm.notation2.parser.notation.HELM2Notation helm2Notation) throws org.helm.notation2.parser.exceptionparser.NotationException, HELM2HandledException, ChemistryExceptionmethod to generate for all rna polymers the natural analogue sequence- Parameters:
helm2Notation- input HELm2Notation- Returns:
- natural analogue sequence(s)
- Throws:
org.helm.notation2.parser.exceptionparser.NotationException- if the input complex notation contains non-nucleid acid polymer(s)HELM2HandledException- if the polymer(s) contain(s) HELM2 featuresChemistryException- if the Chemistry Engine can not be initialized
-
getPeptideNaturalAnalogSequenceFromNotation
public static String getPeptideNaturalAnalogSequenceFromNotation(org.helm.notation2.parser.notation.HELM2Notation helm2Notation) throws HELM2HandledException, PeptideUtilsException, org.helm.notation2.parser.exceptionparser.NotationException, ChemistryExceptionmethod to generate for all peptide polymers the natural analogue sequence- Parameters:
helm2Notation- input HELM2Notation- Returns:
- natural analogue sequence(s)
- Throws:
org.helm.notation2.parser.exceptionparser.NotationException- if the input complex notation contains non-peptide polymer(s)HELM2HandledException- if the polymer(s) contain(s) HELM2 featuresPeptideUtilsException- if the polymer is not a peptideChemistryException- if the Chemistry Engine can not be initialized
-