public class SequenceTools extends Object
| Modifier and Type | Field and Description | 
|---|---|
| protected static String | NUCLEOTIDE_LETTERS | 
| Constructor and Description | 
|---|
| SequenceTools() | 
| Modifier and Type | Method and Description | 
|---|---|
| Sequence<?> | getSequenceFromString(String sequence) | 
| static boolean | isNucleotideSequence(String sequence) | 
| static int | percentNucleotideSequence(String sequence) | 
| static String | permuteCyclic(String string,
             int n)Cyclically permute the characters in  stringforward bynelements. | 
| static <T> void | permuteCyclic(T[] array,
             T[] fill,
             int n)Cyclically permute  arrayforward bynelements. | 
protected static final String NUCLEOTIDE_LETTERS
public static String permuteCyclic(String string, int n)
string forward by n elements.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 acceptablepublic static <T> void permuteCyclic(T[] array,
                                     T[] fill,
                                     int n)
array forward by n elements.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 acceptablepublic static int percentNucleotideSequence(String sequence)
public static boolean isNucleotideSequence(String sequence)
public Sequence<?> getSequenceFromString(String sequence) throws CompoundNotFoundException
CompoundNotFoundExceptionCopyright © 2000–2016 BioJava. All rights reserved.