Mercurial > repos > sanbi-uwc > data_manager_novoalign_license_uploader
changeset 5:d8c61b89caf2 draft
planemo upload for repository https://github.com/zipho/data_manager_novoalign_license_uploader commit bbe707e24f0baca8840603b0abb05bde8fa6d6a4
author | sanbi-uwc |
---|---|
date | Mon, 29 Feb 2016 07:34:32 -0500 |
parents | 3c0e34166275 |
children | 23915ef5be9d |
files | data_manager/novoalign_license_uploader.py data_manager/novoalign_license_uploader.xml data_manager/upload_novoalign_lic.py data_manager/upload_novoalign_lic.xml data_manager_conf.xml |
diffstat | 5 files changed, 57 insertions(+), 58 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/data_manager/novoalign_license_uploader.py Mon Feb 29 07:34:32 2016 -0500 @@ -0,0 +1,28 @@ +#!/usr/bin/env +# Zipho Masholoigu (SANBI-UWC) + +import os +import argparse + +import logging +log = logging.getLogger( __name__ ) + +LICENSE_TARGET_DIRECTORY = "novoalign" + +#Parse Command Line +parser = argparse.ArgumentParser(description="Upload the nonoalign license to the tool-data path") +parser.add_argument('--license_filename') +parser.add_argument('--license_dir') + +args = parser.parse_args() +filename = args.license_filename + +#create the license target directory +target_dir = args.license_dir + "/" + LICENSE_TARGET_DIRECTORY +license_file = target_dir+"/"+"license.lic" +if not os.path.isfile(license_file): + os.mkdir( target_dir ) + #move/copy license file to the tool-data path + os.rename( filename, target_dir+"/"+"license.lic") +else: + log.debug("License for novoalign seems to exists already")
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/data_manager/novoalign_license_uploader.xml Mon Feb 29 07:34:32 2016 -0500 @@ -0,0 +1,27 @@ +<?xml version="1.0" encoding="UT:F-8" ?> +<tool id="data_manager_novoalign_license_uploader" name="Novo-align License Uploader" version="1.0"> + <description>Upload a license file to Galaxy tool-data directory </description> + <stdio> + <exit_code range=":-1" /> + <exit_code range="1:" /> + </stdio> + <command interpreter="python"> + upload_novoalign_lic.py --license_filename "${in_file}" --license_dir ${GALAXY_DATA_INDEX_DIR} + </command> + <inputs> + <param format="data" name="in_file" type="data" label="License for the Novoalign program" /> + </inputs> + <outputs> + <data format="tabular" name="out_file" label="Novoalign License uploader on ${in_file.name}"/> + </outputs> + <help> + Loading the license file for Novo-align program to the tool-data path. + </help> + <citations> + <citation></citation> + </citations> + <tests> + <test> + </test> + </tests> +</tool>
--- a/data_manager/upload_novoalign_lic.py Mon Feb 29 07:18:49 2016 -0500 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,28 +0,0 @@ -#!/usr/bin/env -# Zipho Masholoigu (SANBI-UWC) - -import os -import argparse - -import logging -log = logging.getLogger( __name__ ) - -LICENSE_TARGET_DIRECTORY = "novoalign" - -#Parse Command Line -parser = argparse.ArgumentParser(description="Upload the nonoalign license to the tool-data path") -parser.add_argument('--license_filename') -parser.add_argument('--license_dir') - -args = parser.parse_args() -filename = args.license_filename - -#create the license target directory -target_dir = args.license_dir + "/" + LICENSE_TARGET_DIRECTORY -license_file = target_dir+"/"+"license.lic" -if not os.path.isfile(license_file): - os.mkdir( target_dir ) - #move/copy license file to the tool-data path - os.rename( filename, target_dir+"/"+"license.lic") -else: - log.debug("License for novoalign seems to exists already")
--- a/data_manager/upload_novoalign_lic.xml Mon Feb 29 07:18:49 2016 -0500 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,27 +0,0 @@ -<?xml version="1.0" encoding="UT:F-8" ?> -<tool id="data_manager_novoalign_license_uploader" name="Novo-align License Uploader" version="1.0"> - <description>Upload a license file to Galaxy tool-data directory </description> - <stdio> - <exit_code range=":-1" /> - <exit_code range="1:" /> - </stdio> - <command interpreter="python"> - upload_novoalign_lic.py --license_filename "${in_file}" --license_dir ${GALAXY_DATA_INDEX_DIR} - </command> - <inputs> - <param format="data" name="in_file" type="data" label="License for the Novoalign program" /> - </inputs> - <outputs> - <data format="tabular" name="out_file" label="Novoalign License uploader on ${in_file.name}"/> - </outputs> - <help> - Loading the license file for Novo-align program to the tool-data path. - </help> - <citations> - <citation></citation> - </citations> - <tests> - <test> - </test> - </tests> -</tool>
--- a/data_manager_conf.xml Mon Feb 29 07:18:49 2016 -0500 +++ b/data_manager_conf.xml Mon Feb 29 07:34:32 2016 -0500 @@ -1,7 +1,6 @@ <?xml version="1.0" encoding="utf-8" ?> <data_managers> - <data_manager tool_file="data_manager/upload_novoalign_lic.xml" id="data_manager_novoalign_license_uploader" + <data_manager tool_file="data_manager/novoalign_license_uploader.xml" id="novoalign_license_uploader" undeclared_tables="True" version="0.0.1"> - </data_manager> -</data_managers> \ No newline at end of file +</data_managers>