public class DeBruijnGraphSequenceGenerator extends Object
| Constructor and Description |
|---|
DeBruijnGraphSequenceGenerator() |
| Modifier and Type | Method and Description |
|---|---|
static CyclicSequenceAdaptor[] |
generate(DiscreteAlphabet alphabet,
int n)
Generates a De Bruijn sequence of length
, where A denotes the alphabet. |
static CyclicSequenceAdaptor |
generate(DiscreteAlphabet alphabet,
int n,
int alphabetShift)
Generates a De Bruijn sequence using the supplied alphabet and the given alphabet shift, i.e., for a cyclic shift of the symbols
of the alphabet.
|
public static CyclicSequenceAdaptor[] generate(DiscreteAlphabet alphabet, int n) throws WrongAlphabetException, WrongSequenceTypeException
, where A denotes the alphabet.alphabet - the alphabetn - the exponent of length length, corresponds to the length of n-mers covered exactly onceWrongAlphabetException - if the sequence for this alphabet could not be createdWrongSequenceTypeException - if the sequence could not be createdpublic static CyclicSequenceAdaptor generate(DiscreteAlphabet alphabet, int n, int alphabetShift) throws WrongAlphabetException
alphabet - the alphabetn - the length of the covered n-mersalphabetShift - the alphabet shift (0 equals no shift)WrongAlphabetException - if the sequence for this alphabet could not be created