I was wondering if there is a way to check if a character is valid within an
alphabet. For example I want to do some preprocessing on a string before I
convert the string to a SymbolList using DNATools. However if an invalid
character exists in the string an Exception will be thrown, so I would
Hi Eric,
You can do something like this to check if a particular letter (token)
is in an alphabet:
Alphabet myAlphabet = ... ; // get your alphabet from somewhere
SymbolTokenization st = myAlphabet.getTokenization("token");
String token = "X"; // the token to check for