[Biojava-l] get all symbols in an alphabet

Schreiber, Mark mark.schreiber@agresearch.co.nz
Thu, 9 Jan 2003 11:26:13 +1300


Hi -

If the Alphabet is a FiniteAlphabet you can get an iterator over the
Alphabet or you can use AlphabetManager to generate an AlphabetIndex
which can be used to access each Symbol.

The getSymbol method you describe generates an ambiguity symbol that
uniquely describes the set of Symbols in the list.

- Mark


> -----Original Message-----
> From: Ren, Zhen [mailto:zren@amylin.com] 
> Sent: Thursday, 9 January 2003 10:40 a.m.
> To: biojava-l@biojava.org
> Subject: [Biojava-l] get all symbols in an alphabet
> 
> 
> Hi, gang,
> 
> How do I get all symbols in an alphabet?  The Alphabet 
> interface has a method:
> 
> Symbol getSymbol(java.util.List rl);
> 
> Can someone help me understand what symbol it really returns, 
> a random one, the first one or what?  How do I use this?
> 
> Thanks so much.
> 
> Zhen
> 
> _______________________________________________
> Biojava-l mailing list  -  Biojava-l@biojava.org 
> http://biojava.org/mailman/listinfo/biojava-l
> 
=======================================================================
Attention: The information contained in this message and/or attachments
from AgResearch Limited is intended only for the persons or entities
to which it is addressed and may contain confidential and/or privileged
material. Any review, retransmission, dissemination or other use of, or
taking of any action in reliance upon, this information by persons or
entities other than the intended recipients is prohibited by AgResearch
Limited. If you have received this message in error, please notify the
sender immediately.
=======================================================================