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

Zagato zagato.gekko at gmail.com
Fri Nov 9 18:48:02 UTC 2007


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 <email2ants at gmail.com> 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  -  Biojava-l at lists.open-bio.org
> 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__



More information about the Biojava-l mailing list