[Biojava-l] Symbol to Token?

2004-06-12 Thread Thorsten
Hello, I simply want to have the textual one letter code of a Protein Symbol. How can I do this? Example Symbol ala = ProteinTools.ala(); //Now I want to print out the one letter code of Alanin: The desired result should be "A". Any solutions? -Th P.S.: I need it for calculating the hydrophob

Re: [Biojava-l] Symbol to Token?

2004-06-12 Thread Thorsten
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 w