From: Angel P. <an...@pc...> - 2004-08-24 17:04:41
|
Jeetendra Soneja wrote: >Hi all, >When the GBParser plugin figures out that the sequence with the accession >number is already present, it tries to update it. >Now, what are the exact updates that take place ? If the number of >features have changed, does it add/delete the features to the already >existing sequence in the database ? Does it make the changes to actual >sequence ? > >I would appreciate if someone could provide me this information. > >Thanks, >Jeetendra. > > > > If the sequence changed it updates the sequence It treats features as follows: It retrieves all of the existing record's features. It builds a NEW records with all the features from the gbff record It does a graph-based comparison to find matches for features of both object graphs Any feature from the existing record that is not matched to the new record should be deleted Any feature in the new record that is not matched to the existing records are added to the new record The existing record is then committed. In essence, I don't do an "update" but rather a delete then re-insert for changed features. Angel |