Try with: String s = alignment.symbolListForLabel( label ).subStr( i, i+1 );
Bye... Alan Jairo Acosta Cali - Colombia On Nov 9, 2007 12:55 PM, Anthony Underwood <[EMAIL PROTECTED]> wrote: > 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 > _______________________________________________ > Biojava-l mailing list - [email protected] > http://lists.open-bio.org/mailman/listinfo/biojava-l > -- Farewell. http://www.youtube.com/zagatogekko ruby << __EOF__ puts [ 111, 116, 97, 103, 97, 90 ].collect{|v| v.chr}.join.reverse __EOF__ _______________________________________________ Biojava-l mailing list - [email protected] http://lists.open-bio.org/mailman/listinfo/biojava-l
