Mercurial > repos > matthias > data_manager_megan_tools
changeset 2:24c02af5fd77 draft
planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tree/master/data_managers/data_manager_megan_tools commit 6a91765e86532f90dc2bdaae50d9d1a87cf62d9d-dirty
author | matthias |
---|---|
date | Thu, 01 Nov 2018 15:08:29 -0400 |
parents | f7ad11d31098 |
children | fbc0b9a9f58e |
files | data_manager/.data_manager.py.swp data_manager/.megan_tools_fetcher.xml.swp data_manager/data_manager.py data_manager/megan_tools_fetcher.xml |
diffstat | 4 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/data_manager/data_manager.py Thu Nov 01 14:40:23 2018 -0400 +++ b/data_manager/data_manager.py Thu Nov 01 15:08:29 2018 -0400 @@ -1,9 +1,8 @@ import argparse -import datetime import json import os import shutil -import tarfile +import sys import zipfile try: # For Python 3.0 and later @@ -92,7 +91,7 @@ data_manager_entry['name'] = FILE2NAME[fname] data_manager_entry['type'] = FILE2TYPE[fname] data_manager_entry['path'] = path - + data_manager_json = dict(data_tables=dict(megan_tools=data_manager_entry)) params = json.loads(open(outjson).read()) @@ -102,6 +101,7 @@ for filename in os.listdir(workdir): shutil.move(os.path.join(output_path, filename), target_directory) file(outjson, 'w').write(json.dumps(data_manager_json)) + sys.stderr.write("%s\n"%(json.dumps(data_manager_json, indent=4))) if __name__ == '__main__':
--- a/data_manager/megan_tools_fetcher.xml Thu Nov 01 14:40:23 2018 -0400 +++ b/data_manager/megan_tools_fetcher.xml Thu Nov 01 15:08:29 2018 -0400 @@ -1,5 +1,5 @@ <?xml version="1.0"?> -<tool id="megan_tools_fetcher" name="megan tools" tool_type="manage_data" version="0.0.1"> +<tool id="megan_tools_fetcher" name="megan tools" tool_type="manage_data" version="0.0.2"> <description>Mapping files downloader</description> <command detect_errors="exit_code"> <![CDATA[