[Biojava-l] [BioSQL-l] Load/Update Genbank sequence issue

Guido Cappuccilli gcappuccilli at protelix.com
Tue May 20 19:17:56 UTC 2008


I am not an expert, but I think the problem is that you try to create  
a new Namespace over and over.
You should use singletones instead.
Try to do something like this afet you connect to BioSQL:

Namespace n = (Namespace)  
RichObjectFactory.getObject(SimpleNamespace.class, new Object[] 
{namespace});

And then read your genebank like this.

RichSequenceIterator rsi = RichSequence.IOTools.readGenbankDNA(br, n);

Agaian I am not an expert so I might be wrong.
Try and let me know.
Ciao
Guido



More information about the Biojava-l mailing list