[BioSQL-l] How to add a feature?

Marc Logghe Marc.Logghe at devgen.com
Thu Jun 2 08:42:56 EDT 2005


Hi Martina,
I don't know how it goes in BioJava but in BioPerl the flow looks like
this:
1) create your feature
2) make it persistent
3) add it to your (persistent) sequence object
4) store the sequence object in the databse
5) commit if necessary

HTH,
Marc

> I'm wondering how to add a feature to a given sequence?
> I know, I can use createFeature, but that changes nothing in 
> the database, that does addSequence. So is the proper way to 
> retrieve the seq., get all its features, copy it to new seq 
> and add a feature, delete the seq in the database and store 
> the new one?
> There must be a simpler way? BioJava In Anger is rather 
> sparse on things like that, I could do with a lot more examples ..
> 
> Martina
> _______________________________________________
> BioSQL-l mailing list
> BioSQL-l at open-bio.org
> http://open-bio.org/mailman/listinfo/biosql-l
> 



More information about the BioSQL-l mailing list