public class RNAUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
MINUMUM_MATCH_FRAGMENT_LENGTH |
| Modifier and Type | Method and Description |
|---|---|
static void |
addLastP(org.helm.notation2.parser.notation.polymer.PolymerNotation polymer)
method to add a phosphate to the last polymer's nucleotide
|
static boolean |
areAntiparallel(org.helm.notation2.parser.notation.polymer.PolymerNotation polymerOne,
org.helm.notation2.parser.notation.polymer.PolymerNotation polymerTwo)
method to check if two given polymers are complement to each other
|
static org.helm.notation2.parser.notation.polymer.PolymerNotation |
getAntiparallel(org.helm.notation2.parser.notation.polymer.PolymerNotation polymer)
method to get the antiparallel polymer for a rna/dna polymer
|
static org.helm.notation2.parser.notation.polymer.PolymerNotation |
getComplement(org.helm.notation2.parser.notation.polymer.PolymerNotation polymer)
method to get the normal complement polymer for a given rna/dna polymer
|
static org.helm.notation2.parser.notation.polymer.PolymerNotation |
getInverse(org.helm.notation2.parser.notation.polymer.PolymerNotation polymer)
method to get the polymer with the inverse sequence of the current
polymer
|
static String |
getMaxMatchFragment(String seq1,
String seq2)
method to get the largest matched fragment between two sequences, replace
T with U before Match
|
static String |
getMaxMatchFragment(String seq1,
String seq2,
int minLength)
This method returns the largest matched fragment between two sequences,
replace T with U before match
|
static String |
getModifiedNucleotideSequence(org.helm.notation2.parser.notation.polymer.PolymerNotation polymer)
method to get the modifiedNucleotideSequence of the given PolymerNotation
|
static String |
getNaturalAnalogSequence(org.helm.notation2.parser.notation.polymer.PolymerNotation polymer)
method to generate the natural analogue sequence of a rna/dna of a given
polymer
|
static List<Nucleotide> |
getNucleotideList(org.helm.notation2.parser.notation.polymer.PolymerNotation polymer)
method to get all nucleotides for one polymer
|
static String |
getNucleotideSequence(org.helm.notation2.parser.notation.polymer.PolymerNotation polymer)
method to get the nucleotide sequence for the polymer
|
static org.helm.notation2.parser.notation.polymer.PolymerNotation |
getReverseComplement(org.helm.notation2.parser.notation.polymer.PolymerNotation polymer)
method to get the polymer with the reverse complement sequence of the
current polymer
|
static String |
getReverseSequence(org.helm.notation2.parser.notation.polymer.PolymerNotation polymer)
method to generate the reverse rna/dna sequence of a given polymer
|
static String |
getSequence(org.helm.notation2.parser.notation.polymer.PolymerNotation one)
method to get the rna sequence of the given PolymerNotation
|
static String |
getTrimmedNucleotideSequence(org.helm.notation2.parser.notation.polymer.PolymerNotation polymer)
method to get the trimmed nucleotide sequence
|
static boolean |
hasNucleotideModification(org.helm.notation2.parser.notation.polymer.PolymerNotation polymer)
method to check if the given PolymerNotation has a nucleotide
Modification
|
static List<org.helm.notation2.parser.notation.connection.ConnectionNotation> |
hybridize(org.helm.notation2.parser.notation.polymer.PolymerNotation one,
org.helm.notation2.parser.notation.polymer.PolymerNotation two)
method to hybridize two given PolymerNotations together
|
static List<org.helm.notation2.parser.notation.connection.ConnectionNotation> |
hybridizeAntiparallel(org.helm.notation2.parser.notation.polymer.PolymerNotation one,
org.helm.notation2.parser.notation.polymer.PolymerNotation two)
method to hybridize two PolymerNotations together if they are
antiparallel
|
static void |
removeLastP(org.helm.notation2.parser.notation.polymer.PolymerNotation polymer)
method to remove the phosphate of the last nucleotide
|
public static final int MINUMUM_MATCH_FRAGMENT_LENGTH
public static String getReverseSequence(org.helm.notation2.parser.notation.polymer.PolymerNotation polymer) throws RNAUtilsException, HELM2HandledException, NotationException, ChemistryException
polymer - PolymerNotationRNAUtilsException - if the polymer is not a RNA/DNAHELM2HandledException - if the polymer contains HELM2 featuresNotationException - if notation is not validChemistryException - if the Chemistry Engine can not be initializedpublic static String getNaturalAnalogSequence(org.helm.notation2.parser.notation.polymer.PolymerNotation polymer) throws HELM2HandledException, RNAUtilsException, ChemistryException
polymer - PolymerNotationHELM2HandledException - if the polymer contains HELM2 featuresRNAUtilsException - if the polymer is not RNA or DNAChemistryException - if the Chemistry Engine can not be initializedpublic static boolean areAntiparallel(org.helm.notation2.parser.notation.polymer.PolymerNotation polymerOne,
org.helm.notation2.parser.notation.polymer.PolymerNotation polymerTwo)
throws RNAUtilsException,
HELM2HandledException,
ChemistryException,
NucleotideLoadingException
polymerOne - PolymerNotation of the first polymerpolymerTwo - PolymerNotation of the second polymerRNAUtilsException - if the polymers are not rna/dna or the antiparallel strand
can not be built from polymerOneHELM2HandledException - if the polymers contain HELM2 featuresChemistryException - if the Chemistry Engine can not be initializedNucleotideLoadingException - if nucleotides can not be loadedpublic static String getMaxMatchFragment(String seq1, String seq2) throws org.helm.notation2.parser.exceptionparser.NotationException
seq1 - single letter, all upper case nucleotide sequenceseq2 - single letter, all upper case nucleotide sequenceorg.helm.notation2.parser.exceptionparser.NotationException - if the notation is not validpublic static String getMaxMatchFragment(String seq1, String seq2, int minLength) throws org.helm.notation2.parser.exceptionparser.NotationException
seq1 - single letter, all upper case nucleotide sequenceseq2 - single letter, all upper case nucleotide sequenceminLength - - minimum fragment lengthorg.helm.notation2.parser.exceptionparser.NotationException - if the notation is not validpublic static void removeLastP(org.helm.notation2.parser.notation.polymer.PolymerNotation polymer)
throws RNAUtilsException,
org.helm.notation2.parser.exceptionparser.NotationException,
HELM2HandledException
polymer - PolymerNotationRNAUtilsException - if the PolmyerNotation is not a rna or dnaorg.helm.notation2.parser.exceptionparser.NotationException - if the changed notation object can not be generatedHELM2HandledException - if HELM2 features are involvedpublic static void addLastP(org.helm.notation2.parser.notation.polymer.PolymerNotation polymer)
throws RNAUtilsException,
org.helm.notation2.parser.exceptionparser.NotationException,
HELM2HandledException
polymer - PolymerNotationRNAUtilsException - if the polymer is no rna or dnaorg.helm.notation2.parser.exceptionparser.NotationException - if the changed notation object can not be generatedHELM2HandledException - if HELM2 features are involvedpublic static org.helm.notation2.parser.notation.polymer.PolymerNotation getAntiparallel(org.helm.notation2.parser.notation.polymer.PolymerNotation polymer)
throws RNAUtilsException,
ChemistryException,
NucleotideLoadingException
polymer - PolymerNotationRNAUtilsException - if the polymer is not rna or dna or the reverse polymer can
not be builtChemistryException - if the Chemistry Engine can not be initializedNucleotideLoadingException - if nucleotides can not be loadedpublic static org.helm.notation2.parser.notation.polymer.PolymerNotation getInverse(org.helm.notation2.parser.notation.polymer.PolymerNotation polymer)
throws RNAUtilsException,
NotationException,
ChemistryException,
NucleotideLoadingException
polymer - PolymerNotationRNAUtilsException - if the polymer is not rna or dna or the inverse strand can
not be builtNotationException - if notation is not validChemistryException - if the Chemistry Engine can not be initializedNucleotideLoadingException - if nucleotides can not be loadedpublic static org.helm.notation2.parser.notation.polymer.PolymerNotation getReverseComplement(org.helm.notation2.parser.notation.polymer.PolymerNotation polymer)
throws RNAUtilsException,
NotationException,
ChemistryException,
NucleotideLoadingException
polymer - PolymerNotationRNAUtilsException - if the polymer is not rna or dna or the inverse strand can
not be builtNotationException - if notation is not validChemistryException - if the Chemistry Engine can not be initializedNucleotideLoadingException - can not be loadedpublic static org.helm.notation2.parser.notation.polymer.PolymerNotation getComplement(org.helm.notation2.parser.notation.polymer.PolymerNotation polymer)
throws RNAUtilsException,
ChemistryException,
NucleotideLoadingException
polymer - given polymernotationRNAUtilsException - if the polymer is not rna or dna or the complement polymer
can not be builtChemistryException - if the Chemistry Engine can not be initializedNucleotideLoadingException - if nucleotides can not be loadedpublic static boolean hasNucleotideModification(org.helm.notation2.parser.notation.polymer.PolymerNotation polymer)
throws org.helm.notation2.parser.exceptionparser.NotationException
polymer - PolymerNotationorg.helm.notation2.parser.exceptionparser.NotationException - if notation is not validpublic static List<org.helm.notation2.parser.notation.connection.ConnectionNotation> hybridizeAntiparallel(org.helm.notation2.parser.notation.polymer.PolymerNotation one, org.helm.notation2.parser.notation.polymer.PolymerNotation two) throws RNAUtilsException, org.helm.notation2.parser.exceptionparser.NotationException, HELM2HandledException, ChemistryException, NucleotideLoadingException
one - PolymerNotation firsttwo - PolymerNotation secondRNAUtilsException - if the polymer is not a RNA/DNAorg.helm.notation2.parser.exceptionparser.NotationException - if notation is not validHELM2HandledException - if it contains helm2 specific features can not be downcasted to HELM1 formatChemistryException - if the Chemistry Engine can not be initializedNucleotideLoadingException - if nucleotides can not be loadedpublic static String getSequence(org.helm.notation2.parser.notation.polymer.PolymerNotation one) throws RNAUtilsException, HELM2HandledException, ChemistryException
one - PolymerNotationRNAUtilsException - if the polymer is not a RNA/DNAHELM2HandledException - if it contains helm2 specific features can not be casted to HELM1 FormatChemistryException - if chemistry engine can not be initializedpublic static String getModifiedNucleotideSequence(org.helm.notation2.parser.notation.polymer.PolymerNotation polymer) throws RNAUtilsException, HELM2HandledException, ChemistryException
polymer - PolymerNotationRNAUtilsException - if the polymer is not a RNA/DNAHELM2HandledException - if it contains HELM2 specific features, it can not be casted to HELM1FormatChemistryException - if the chemistry engine can not be initializedpublic static List<org.helm.notation2.parser.notation.connection.ConnectionNotation> hybridize(org.helm.notation2.parser.notation.polymer.PolymerNotation one, org.helm.notation2.parser.notation.polymer.PolymerNotation two) throws RNAUtilsException, org.helm.notation2.parser.exceptionparser.NotationException, HELM2HandledException, NotationException, ChemistryException
one - PolymerNotaitontwo - PolymerNotationRNAUtilsException - if the polymer is not a RNA/DNAorg.helm.notation2.parser.exceptionparser.NotationException - if notation is not validHELM2HandledException - if it contains specific HELM2 features, so that it can not casted to HELM1FormatNotationException - if notation is not validChemistryException - if chemistry engine can not be initializedpublic static String getNucleotideSequence(org.helm.notation2.parser.notation.polymer.PolymerNotation polymer) throws org.helm.notation2.parser.exceptionparser.NotationException, RNAUtilsException, HELM2HandledException, NucleotideLoadingException, ChemistryException
polymer - PolymerNotationorg.helm.notation2.parser.exceptionparser.NotationException - if notation is not validRNAUtilsException - if the polymer is not a RNA/DNAHELM2HandledException - if it contains HELM2 specific features, so that it can not be casted to HELM1 FormatNucleotideLoadingException - if nucleotides can not be loadedChemistryException - if chemistry engine can not be initializedpublic static List<Nucleotide> getNucleotideList(org.helm.notation2.parser.notation.polymer.PolymerNotation polymer) throws RNAUtilsException, HELM2HandledException, ChemistryException
polymer - PolymerNotationRNAUtilsException - if the polymer is not rna or dna or the nucleotide can not be
readHELM2HandledException - if the polymer contains HELM2 featuresChemistryException - if chemistry engine can not be initializedpublic static String getTrimmedNucleotideSequence(org.helm.notation2.parser.notation.polymer.PolymerNotation polymer) throws RNAUtilsException, HELM2HandledException, ChemistryException
polymer - given rna/dna polymerRNAUtilsException - if the polymer is not a RNA/DNAHELM2HandledException - if it contains HELM2 specific features, so that it can not be casted to HELM1 FormatChemistryException - if chemistry engine can not be initializedCopyright © 2017. All rights reserved.