[Biojava-l] Help

Hailong Meng hmeng at cise.ufl.edu
Mon Jul 28 13:46:13 EDT 2003


Hi Mark,

But, how can I input the matrixes from the file to the class
WeightMatrix. Because I did not find any method in class WeightMatrix
which can do that.

Thanks again.

Hailong
-- 


On Mon, 28 Jul 2003, Matthew Pocock wrote:

> Hi Hailong,
>
> List is nicer than arrays - use something like this:
>
> List matricies = new ArrayList();
>
> ... loop that loads the next matrix in ...
>    matricies.add(matrix);
> ... end of matrix loading loop ...
>
> See java.util.List and java.util.Collection - also, Iterator is your
> friend. The sun web site has a tutorial on collections.
>
> Matthew
>
>
> Hailong Meng wrote:
>
> > Hi, Mark,
> >
> > Thank you very much for your suggestions! I am so excited when I find
> > BioJava. It is a wonderful place. Maybe I am new here, it is a little
> > bit hard for me to find the classes I want to use. Hopefully, it will
> > get better when I stay here a little longer.
> >
> > I have one more question. I plan to search a list of motifs against a
> > list of sequences. I got motifs from MEME and put all the motif
> > matrixes to a file. I guess I need to put all these motif matrixes to
> > a array of WeightMatrix. How can I do that?
> >
> > Thanks.
> >
> > Hailong
> >
>
>
>



More information about the Biojava-l mailing list