ok, I've found it:
SymbolTokenization tok = ProteinTools.getAlphabet().getTokenization("token");
String str = tok.tokenizeSymbol(sym);
btw:
converting the BioJava-Sequence to a simple string and working with the native
Java String is much faster...
-Th
T> Hello,
T> I simply want to have the textual one letter code of a Protein Symbol.
T> How can I do this?
T> Example
T> Symbol ala = ProteinTools.ala();
T> //Now I want to print out the one letter code of Alanin:
T> The desired result should be "A".
T> Any solutions?
T> -Th
T> P.S.:
T> I need it for calculating the hydrophobicity of a lot of sequences using a
T> hydrophobicty scale.
T> _______________________________________________
T> Biojava-l mailing list - [EMAIL PROTECTED]
T> http://biojava.org/mailman/listinfo/biojava-l
_______________________________________________
Biojava-l mailing list - [EMAIL PROTECTED]
http://biojava.org/mailman/listinfo/biojava-l