[Biojava-l] Getting a base from an alignment (way to complex?)

Anthony Underwood email2ants at gmail.com
Fri Nov 9 12:55:36 EST 2007


Hi All,

I've generated an alignment and I am retrieving positions within the  
alignment using

Symbol base = alignment.symbolAt(label, i);

I am trying to get whether the base at this position is G, A, T or C

However when I use base.getName() it returns strings such as "thymine"

The documentation states that the method getToken should also be  
available, but this returns method undefined. http://www.biojava.org/docs/api15/org/biojava/bio/symbol/Symbol.html

Is there a simple way of retrieving a one letter textual  
representation of the symbol?


Many thanks


Anthony


More information about the Biojava-l mailing list