changeset 20:4955ab76ccf8 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 15:15:21 -0400
parents 6883b8116d0d
children b37cf95d8b3b
files data_manager/mob_suite_build_database.py
diffstat 1 files changed, 2 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/data_manager/mob_suite_build_database.py	Mon Jun 24 15:10:19 2019 -0400
+++ b/data_manager/mob_suite_build_database.py	Mon Jun 24 15:15:21 2019 -0400
@@ -43,24 +43,19 @@
     
     subprocess.check_call(['mob_cluster'] + mob_cluster_args_list, cwd=target_directory)
 
-    os.rename(
-        os.path.join(target_directory, database_path, 'references_updated.fasta'),
-        os.path.join(target_directory, database_path, 'plasmids.fas')
-    )
-
     print("Sleeping for 20s")
     time.sleep(20)
     print("Sleep ending")
     
     makeblastdb_args_list = [
-        '-in', os.path.join(database_path, 'plasmids.fas'),
+        '-in', os.path.join(database_path, 'references_updated.fasta'),
         '-dbtype', 'nucl',
     ]
     
     subprocess.check_call(['makeblastdb'] + makeblastdb_args_list, cwd=target_directory)
 
     mash_sketch_args_list = [
-        '-i', os.path.join(database_path, 'plasmids.fas'),
+        '-i', os.path.join(database_path, 'references_updated.fasta'),
     ]
 
     subprocess.check_call(['mash', 'sketch'] + mash_sketch_args_list, cwd=target_directory)