[Biojava-l] Symbol to Token?

mark.schreiber at group.novartis.com mark.schreiber at group.novartis.com
Sun Jun 13 21:00:16 EDT 2004


Faster than what?





Thorsten <thorsten at photono-software.de>
Sent by: biojava-l-bounces at portal.open-bio.org
06/13/2004 06:31 AM
Please respond to Thorsten Schmidt

 
        To:     biojava-l at biojava.org
        cc: 
        Subject:        Re: [Biojava-l] Symbol to Token?


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





_______________________________________________
Biojava-l mailing list  -  Biojava-l at biojava.org
http://biojava.org/mailman/listinfo/biojava-l





More information about the Biojava-l mailing list