[BioSQL-l] location in features

Hilmar Lapp hlapp at gnf.org
Wed Apr 27 14:51:20 EDT 2005


Hi Martina, people on the biojava mailing list will probably be better 
able to help you out. Also, Richard and Mark have been working on 
getting Biojava interoperate better with the standard biosql schema. 
They may know better where your issue is coming from.

	-hilmar

On Apr 27, 2005, at 8:27 AM, Martina wrote:

> Hi,
> I can't get rid of this exception:
> org.biojava.bio.BioRuntimeException: BioSQL SeqFeature doesn't have 
> any associated location spans. seqfeature_id=148
>
> Can anybody help me?
>
> put the sequence in:
>
> Sequence seq = DNATools.createDNASequence(sequence, "AF100928");
> Feature.Template templSeq = new Feature.Template();
> 		templSeq.source = "ncbi";
> 		templSeq.type = "gen";
> 		templSeq.location = Location.empty;
> 		seq.createFeature(templSeq);
> db.addSequence(seq);
>
> get it out:
> seq = db.getSequence("AF100928");
> System.out.println(seq.getName() + " contains " + seq.countFeatures()
> 					+ " features");	
>
> seq.getName() works fine, but the seq doesn't have any features, but I 
> can see them in the db.
>
> What am I missing here?
>
> Martina
>
> _______________________________________________
> BioSQL-l mailing list
> BioSQL-l at open-bio.org
> http://open-bio.org/mailman/listinfo/biosql-l
>
-- 
-------------------------------------------------------------
Hilmar Lapp                            email: lapp at gnf.org
GNF, San Diego, Ca. 92121              phone: +1-858-812-1757
-------------------------------------------------------------



More information about the BioSQL-l mailing list