Skip to content

Should database overwrites be requested by the user? or disabled by user? #16

@rpetit3

Description

@rpetit3

Really great tool @evolarjun! I'm curious to get your thoughts on handling existing databases.

Currently if a database already exists it is overwritten then downloaded again.

amrfinder -u
Running amrfinder -u
Running /home/rpetit/miniconda3/envs/amr/bin/amrfinder_update -d /home/rpetit/miniconda3/envs/amr/share/amrfinderplus/data
/home/rpetit/miniconda3/envs/amr/share/amrfinderplus/data/2019-09-06.1/ already exists, overwriting what was there
Dowloading AMRFinder database version 2019-09-06.1 into /home/rpetit/miniconda3/envs/amr/share/amrfinderplus/data/2019-09-06.1/
Indexing

I wonder if it would be better to raise an error and require the user to explicitly tell amrfinder (ex --force) to overwrite the existing database.

An alternative, would be allow user to disable the overwrite (ex. --skip_existing).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions