changeset 17:746cfbee7afd draft

planemo upload for repository https://github.com/dfornika/galaxytools/tree/master/data_managers/data_manager_build_mob_suite_database/ commit ded3b42d8a746eac2973cc17826160e43ac11186-dirty
author dfornika
date Mon, 24 Jun 2019 14:31:39 -0400
parents c946718c1328
children bf35d745b493
files data_manager/mob_suite_build_database.py
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/data_manager/mob_suite_build_database.py	Mon Jun 24 14:25:41 2019 -0400
+++ b/data_manager/mob_suite_build_database.py	Mon Jun 24 14:31:39 2019 -0400
@@ -43,9 +43,9 @@
     
     subprocess.check_call(['mob_cluster'] + mob_cluster_args_list, cwd=target_directory)
 
-    shutil.copyfile(
-        os.path.join(database_path, 'references_updated.fasta'),
-        os.path.join(database_path, 'ncbi_plasmid_full_seqs.fas')
+    os.rename(
+        os.path.join(target_directory, database_path, 'references_updated.fasta'),
+        os.path.join(target_directory, database_path, 'ncbi_plasmid_full_seqs.fas')
     )
 
     print("Sleeping for 20s")