Package org.biojava.nbio.core.util
Class SequenceTools
java.lang.Object
org.biojava.nbio.core.util.SequenceTools
- 
Field Summary
Fields - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionSequence<?>getSequenceFromString(String sequence) static booleanisNucleotideSequence(String sequence) static intpercentNucleotideSequence(String sequence) static StringpermuteCyclic(String string, int n) Cyclically permute the characters instringforward bynelements.static <T> voidpermuteCyclic(T[] array, T[] fill, int n) Cyclically permutearrayforward bynelements. 
- 
Field Details
- 
NUCLEOTIDE_LETTERS
- See Also:
 
 
 - 
 - 
Constructor Details
- 
SequenceTools
public SequenceTools() 
 - 
 - 
Method Details
- 
permuteCyclic
Cyclically permute the characters instringforward bynelements.- Parameters:
 string- The string to permuten- The number of characters to permute by; can be positive or negative; values greater than the length of the array are acceptable
 - 
permuteCyclic
public static <T> void permuteCyclic(T[] array, T[] fill, int n) Cyclically permutearrayforward bynelements.- Parameters:
 array- The original result; will not be changedfill- The permuted result will be filled into this arrayn- The number of elements to permute by; can be positive or negative; values greater than the length of the array are acceptable
 - 
percentNucleotideSequence
 - 
isNucleotideSequence
 - 
getSequenceFromString
- Throws:
 CompoundNotFoundException
 
 -