[Biojava-l] Parsing a huge Blast File with Biojava

2004-11-01 Thread Can Gencer
Hello everyone, We are trying to parse a quite large multiple BLAST results file (around 4GB), and the computer available has 1GB of RAM. However, when the code in the cookbook is used ( "http://www.biojava.org/docs/bj_in_anger/BlastParser.htm";), using the BlastLikeSAXParser it will give out an O

Re: [Biojava-l] Parsing a huge Blast File with Biojava

2004-11-01 Thread David Huen
On Monday 01 Nov 2004 14:49, Can Gencer wrote: > Hello everyone, > > We are trying to parse a quite large multiple BLAST results file (around > 4GB), and the computer available has 1GB of RAM. However, when the code > in the cookbook is used ( > "http://www.biojava.org/docs/bj_in_anger/BlastParser.

Re: [Biojava-l] Parsing a huge Blast File with Biojava

2004-11-01 Thread Thomas Down
On Mon, Nov 01, 2004 at 03:49:39PM +0100, Can Gencer wrote: > Hello everyone, > > We are trying to parse a quite large multiple BLAST results file (around > 4GB), and the computer available has 1GB of RAM. However, when the code > in the cookbook is used ( > "http://www.biojava.org/docs/bj_in_ange

[Biojava-l] Navigating a Vector

2004-11-01 Thread Ng, Peter
I'm trying to iterate through a database using a Vector and previous/next JButtons. How do I find the Vector index of the current record so I can navigate forward and back in the Vector? Thanks in advance! -- Regards, Peter Ng Laboratory Information Management Coordinator Laboratory Services BC

Re: [Biojava-l] Navigating a Vector

2004-11-01 Thread mark . schreiber
I'm not sure you can, especially because iterators on Vectors are not gaurenteed to operate in any special order. If possible you should use an ArrayList or LinkedList. In this case you will be able to find the index or even ask for items by their index. You can make a List or LinkedList out of

Re: [Biojava-l] Navigating a Vector

2004-11-01 Thread Rahul Karnik
[EMAIL PROTECTED] wrote: I'm not sure you can, especially because iterators on Vectors are not gaurenteed to operate in any special order. If possible you should use an ArrayList or LinkedList. In this case you will be able to find the index or even ask for items by their index. While order is n

Re: [Biojava-l] Navigating a Vector

2004-11-01 Thread Francois Pepin
Vector implements List and List guarantees that the iterator goes through the right order. And getting a ListIterator lets you go back and forth. And indexOf(Object element) would give you the (first) index of where a given element is found. Is there something I'm missing here? Francois On Mon