Skip to content

Commit

Permalink
changes after review
Browse files Browse the repository at this point in the history
  • Loading branch information
VinzentRisch committed Jul 3, 2024
1 parent c2d052c commit da2cd5a
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions q2_amr/amrfinderplus/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,13 @@ def fetch_amrfinderplus_db() -> AMRFinderPlusDatabaseDirectoryFormat:
def _copy_all(src_dir, des_dir):
# Copies all files from source directory to destination directory
for file in os.listdir(src_dir):
src = os.path.join(src_dir, file)
des = os.path.join(des_dir, file)
duplicate(src, des)
duplicate(os.path.join(src_dir, file), os.path.join(des_dir, file))


def run_amrfinder_u():
# The command "amrfinder -u" downloads the latest amrfinderplus database or
# updates it
cmd = ["amrfinder", "-u"]

try:
run_command(cmd, verbose=True)
except subprocess.CalledProcessError as e:
Expand Down

0 comments on commit da2cd5a

Please sign in to comment.