1 Apr 2004 21:06
Parsing GenBank files in Threads
Hoebeke Mark <Mark.Hoebeke <at> jouy.inra.fr>
2004-04-01 19:06:18 GMT
2004-04-01 19:06:18 GMT
Hi, I was wondering if Sequence objects are thread-safe. In a pipeline I am developing I parse a set of GenBank flat files in several simultaneously executing threads (one file per thread, obviously), to feed them in a database. On execution I get erratic ArrayOutOfBoundsExceptions when invoking the SimpleSequence.getString() method. The indices in question are mostly negative. The SimpleSequence instance is created trough a SequenceIterator obtained with SeqIOTools.readGenbank(). When I prefix the method making this call with 'static synchronized' the errors disappear. I leafed through 6 months worth of mail archives looking for clues, to no avail. My guess is that there could be something odd happening in the SeqIOTools.readGenbank() method, which is declared as a static method. Any help would be greatly appreciated. Thanks in advance, Mark -- -- --------------------------Mark.Hoebeke <at> jouy.inra.fr----------------------(Continue reading)
RSS Feed