[Biojava-l] Symbol to Token?

Thorsten thorsten at photono-software.de
Sat Jun 12 18:31:29 EDT 2004


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  -  Biojava-l at biojava.org
T> http://biojava.org/mailman/listinfo/biojava-l







More information about the Biojava-l mailing list