Sorry,

Should have sent this to the whole group

Mark

-----Original Message-----
From: Schreiber, Mark 
Sent: Friday, March 02, 2001 9:58 AM
To: 'Matthew Pocock'
Subject: RE: [Biojava-l] orderNSymbols and Alphabets


Hi,

Attached is a program which details some of my adventures in orderNSymbol
land which may be of use as a demo/ tutorial.

Thanks to those who showed me how to do it.

Mark

> -----Original Message-----
> From: Matthew Pocock [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, February 27, 2001 11:55 PM
> To: Thomas Down
> Cc: Schreiber, Mark; '[EMAIL PROTECTED]'
> Subject: Re: [Biojava-l] orderNSymbols and Alphabets
> 
> 
> ...and to make the n'th order symbol list for the distribution to be 
> used with you can use one of:
> 
> SymbolListViews.orderNSybolList(source, order)
> SymbolListViews.windowedSymbolList(source, windowWidth)
> 
> Thomas Down wrote:
> 
> > On Tue, Feb 27, 2001 at 05:04:59PM +1300, Schreiber, Mark wrote:
> > 
> >> Hi
> >> 
> >> What is the simplest way to create an orderN alphabet or 
> symbol that can be
> >> used in a dsitribution?
> > 
> > 
> > Cross product alphabets are created via the AlphabetManager:
> > 
> >   Alphabet codons = AlphabetManager.getCrossProductAlphabet(
> >                             Collections.nCopies(3, 
> DNATools.getDNA());
> > 
> > This method will work on any arbitrary List of Alphabets.
> > 
> > You can then retrieve symbols from that alphabet:
> > 
> >   List symbols = DNATools.createDNA("atg").toList();
> >   Symbol startCodon = codons.getSymbol(symbols);
> > 
> > This method works on an arbitrary list of Symbols (but obviously
> > these must match the alphabet -- you'll get an 
> IllegalSymbolException
> > otherwise.
> > 
> > Hope this helps,
> > 
> >    Thomas.
> > 
> > _______________________________________________
> > Biojava-l mailing list  -  [EMAIL PROTECTED]
> > http://biojava.org/mailman/listinfo/biojava-l
> 
> 
> _______________________________________________
> Biojava-l mailing list  -  [EMAIL PROTECTED]
> http://biojava.org/mailman/listinfo/biojava-l
> 

CrossProductTest.java

Reply via email to