ukhsa-collaboration / snapperdb

GNU General Public License v3.0
21 stars 5 forks source link

a flag to allow to overwrite duplicate entries into the database #19

Open Wang-Jing-NZ opened 6 years ago

Wang-Jing-NZ commented 6 years ago

Hi there,

In the new version of snapperdb it checks if it doesn't allow duplicated entries in the datbabase. "isolateA is already in SNPdb strains_snps Ref" This is great to avoid duplicate entries in the database. When we see this msg what happens in the database? Skip this isolate and the information in the database is unchanged? or overwrite the information in the database? Can we have a flag to "force" overwrite what's in the database?

Many thanks, Jing

timdallman commented 6 years ago

Hi Jing. The current implementation simply skips the duplicate entry and leaves the database unchanged. Will look to have an overwrite functionality added Thanks Tim