changeset 9:54cf06b7c307 draft

"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_sam_fasta_index_builder commit 20381ede5940c6bbca00b550e01550f5aad0f2b7"
author iuc
date Mon, 01 Nov 2021 08:31:44 +0000
parents 28d50a439ffe
children 6af5a435d20d
files data_manager/data_manager_sam_fasta_index_builder.py data_manager/data_manager_sam_fasta_index_builder.xml
diffstat 2 files changed, 6 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/data_manager/data_manager_sam_fasta_index_builder.py	Thu Nov 28 20:31:54 2019 +0000
+++ b/data_manager/data_manager_sam_fasta_index_builder.py	Mon Nov 01 08:31:44 2021 +0000
@@ -71,7 +71,8 @@
 
     filename = args[0]
 
-    params = json.loads(open(filename).read())
+    with open(filename) as fh:
+        params = json.load(fh)
     target_directory = params['output_data'][0]['extra_files_path']
     os.mkdir(target_directory)
     data_manager_dict = {}
@@ -93,7 +94,8 @@
     )
 
     # save info to json file
-    open(filename, 'w').write(json.dumps(data_manager_dict, sort_keys=True))
+    with open(filename, 'w') as fh:
+        json.dump(data_manager_dict, fh, sort_keys=True)
 
 
 if __name__ == "__main__":
--- a/data_manager/data_manager_sam_fasta_index_builder.xml	Thu Nov 28 20:31:54 2019 +0000
+++ b/data_manager/data_manager_sam_fasta_index_builder.xml	Mon Nov 01 08:31:44 2021 +0000
@@ -1,7 +1,7 @@
-<tool id="sam_fasta_index_builder" name="SAM FASTA index" tool_type="manage_data" version="0.0.4" profile="19.05">
+<tool id="sam_fasta_index_builder" name="SAM FASTA index" tool_type="manage_data" version="0.0.5" profile="19.05">
     <description>builder</description>
     <requirements>
-        <requirement type="package" version="1.9">samtools</requirement>
+        <requirement type="package" version="1.14">samtools</requirement>
         <requirement type="package" version="3.7">python</requirement>
     </requirements>
     <command detect_errors="exit_code"><![CDATA[