[Biojava-l] Re: [BioSQL-l] How to add a feature?
boehme at mpiib-berlin.mpg.de
Thu Jun 2 09:03:30 EDT 2005
but I don't know how to make a feature persistent in Biojava. Maybe
someone from the bioJava list can help me?
Marc Logghe wrote:
> Hi Martina,
> I don't know how it goes in BioJava but in BioPerl the flow looks like
> 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
>>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 ..
>>BioSQL-l mailing list
>>BioSQL-l at open-bio.org
More information about the Biojava-l