# HG changeset patch # User amos # Date 1489779293 14400 # Node ID 259d81207224721f9e7b6e2d0d3e336938714f51 # Parent 679b084023adb6a9e8626081b766388cb4161973 planemo upload for repository https://github.com/arpcard/rgi_conda_dev commit 235d3fe73ff63b485954f184e0a5a4cdb1c7338f diff -r 679b084023ad -r 259d81207224 README.md --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/README.md Fri Mar 17 15:34:53 2017 -0400 @@ -0,0 +1,5 @@ +# RGI wrapper + +This wrapper is used to run Resistance Gene Identifier - Version 3.1.2 on galaxy environment. + +This tool is used together with data manager for RGI: rgi_database_builder. \ No newline at end of file diff -r 679b084023ad -r 259d81207224 Report.json diff -r 679b084023ad -r 259d81207224 card.json diff -r 679b084023ad -r 259d81207224 dataSummary.txt diff -r 679b084023ad -r 259d81207224 init_dir/INSTALL --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/init_dir/INSTALL Fri Mar 17 15:34:53 2017 -0400 @@ -0,0 +1,29 @@ +# Run init to geenerate all xml files +$ ./init + +OR + +# Run init_rgi to generate rgi.xml +$ ./init_rgi + +# Run init_clean to generate clean.xml +$ ./init_clean + + +# Run init_tab to generate tab.xml +$ ./init_tab + + +# Run init_load to generate load.xml +$ ./init_load + +# add update GALAXY_SLOTS + +\${GALAXY_SLOTS:-Z} + +Z is the defaul value + +Example: For number of threads for RGI + +\${GALAXY_SLOTS:-32} + diff -r 679b084023ad -r 259d81207224 init_dir/clean --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/init_dir/clean Fri Mar 17 15:34:53 2017 -0400 @@ -0,0 +1,6 @@ +rm -r test-data +rm *.xml +rm *.json +rm *.txt +rm data* +source deactivate \ No newline at end of file diff -r 679b084023ad -r 259d81207224 init_dir/init --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/init_dir/init Fri Mar 17 15:34:53 2017 -0400 @@ -0,0 +1,14 @@ +echo "========================================[info] adding files =================================================== " +touch dataSummary.txt +touch Report.json +wget https://card.mcmaster.ca/latest/data +tar xvjf data card.json +echo "========================================[info] initializing rgi tool =================================================== " +./init_rgi +echo "========================================[info] initializing rgi_jsontab tool =================================================== " +./init_tab +echo "========================================[info] initializing rgi_clean tool =================================================== " +./init_clean +echo "========================================[info] initializing rgi_load tool =================================================== " +./init_load +echo "========================================[info] Done. =================================================== " diff -r 679b084023ad -r 259d81207224 init_dir/init_clean --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/init_dir/init_clean Fri Mar 17 15:34:53 2017 -0400 @@ -0,0 +1,10 @@ +planemo tool_init \ +--force \ +--id 'rgi_clean' \ +--name 'Resistance Gene Identifier (RGI) - Cleans BLAST databases' \ +--version '3.1.2' \ +--description 'This tool cleans BLAST databases used by RGI' \ +--help_from_command 'rgi_clean -h ' \ +--test_case \ +--example_command 'rgi_clean' \ +--cite_url 'https://card.mcmaster.ca/about' \ No newline at end of file diff -r 679b084023ad -r 259d81207224 init_dir/init_load --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/init_dir/init_load Fri Mar 17 15:34:53 2017 -0400 @@ -0,0 +1,12 @@ +planemo tool_init \ +--force \ +--id 'rgi_load' \ +--name 'Resistance Gene Identifier (RGI) - Loads new CARD data into RGI tool' \ +--version '3.1.2' \ +--description 'This tool loads new CARD data into RGI tool' \ +--help_from_command 'rgi_load -h ' \ +--input 'card.json' \ +--test_case \ +--example_command 'rgi_load -i card.json' \ +--example_input 'card.json' \ +--cite_url 'https://card.mcmaster.ca/about' \ No newline at end of file diff -r 679b084023ad -r 259d81207224 init_dir/init_rgi --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/init_dir/init_rgi Fri Mar 17 15:34:53 2017 -0400 @@ -0,0 +1,18 @@ +planemo tool_init \ +--force \ +--id 'rgi' \ +--name 'Resistance Gene Identifier (RGI)' \ +--version '3.1.2' \ +--description 'This tool predict resistome(s) from protein or nucleotide data based on homology and SNP models' \ +--requirement python@2.7 \ +--requirement biopython@1.68 \ +--requirement six@1.9.0 \ +--requirement prodigal@2.6.3 \ +--requirement diamond@0.8.36 \ +--requirement zlib@1.2.8 \ +--help_from_command 'rgi -h ' \ +--command 'rgi --input_sequence $input_sequence --input_type $input_type --out_file $output1 --num_threads "\${GALAXY_SLOTS:-32}" --verbose $verbose --alignment_tool $alignment_tool' \ +--input 'sequence.fasta' \ +--output 'sequence.fasta.output' \ +--named_output 'Report.json' \ +--cite_url 'https://card.mcmaster.ca/about' \ No newline at end of file diff -r 679b084023ad -r 259d81207224 init_dir/init_tab --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/init_dir/init_tab Fri Mar 17 15:34:53 2017 -0400 @@ -0,0 +1,14 @@ +planemo tool_init \ +--force \ +--id 'rgi_jsontab' \ +--name 'Resistance Gene Identifier (RGI) - Convert RGI JSON to Tab-delimited' \ +--version '3.1.2' \ +--description 'This tool converts RGI json output file to tab-demited output' \ +--help_from_command 'rgi_jsontab -h ' \ +--input 'Report.json' \ +--output 'dataSummary.txt' \ +--test_case \ +--example_command 'rgi_jsontab -i Report.json -o dataSummary.txt' \ +--example_input 'Report.json' \ +--example_output 'dataSummary.txt' \ +--cite_url 'https://card.mcmaster.ca/about' \ No newline at end of file diff -r 679b084023ad -r 259d81207224 init_dir/run --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/init_dir/run Fri Mar 17 15:34:53 2017 -0400 @@ -0,0 +1,1 @@ +planemo s --conda_auto_install --conda_auto_init --conda_dependency_resolution \ No newline at end of file diff -r 679b084023ad -r 259d81207224 init_dir/run2 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/init_dir/run2 Fri Mar 17 15:34:53 2017 -0400 @@ -0,0 +1,16 @@ +# create virtual env +touch /Users/amos/.planemo/gx_venv/bin/activate +# activate the virtual env +source /Users/amos/.planemo/gx_venv/bin/activate +planemo l \ +rgi.xml \ +--report_level all \ +--report_xunit ./galaxy +planemo t \ +--conda_debug \ +--failed \ +--conda_auto_init +planemo s + + +planemo s --conda_auto_install --conda_auto_init --conda_dependency_resolution \ No newline at end of file diff -r 679b084023ad -r 259d81207224 rgi.xml --- a/rgi.xml Fri Oct 14 14:28:52 2016 -0400 +++ b/rgi.xml Fri Mar 17 15:34:53 2017 -0400 @@ -1,93 +1,65 @@ - - This tool provides detection of antibiotic resistance associated genes. + + This tool predict resistome(s) from protein or nucleotide data based on homology and SNP models. - python - biopython - six - zlib - rgi - prodigal + python + biopython + six + prodigal + diamond + zlib - - - - + + + + + + - - - - - - - + + + - - - + + + + + + + + - - - + + + - - - + + + + - - - - - - - - - - @@ -95,41 +67,48 @@ - diff -r 679b084023ad -r 259d81207224 rgi_clean.xml --- a/rgi_clean.xml Fri Oct 14 14:28:52 2016 -0400 +++ b/rgi_clean.xml Fri Mar 17 15:34:53 2017 -0400 @@ -1,7 +1,6 @@ - + This tool cleans BLAST databases used by RGI - rgi @@ -12,19 +11,19 @@ - diff -r 679b084023ad -r 259d81207224 rgi_jsontab.xml --- a/rgi_jsontab.xml Fri Oct 14 14:28:52 2016 -0400 +++ b/rgi_jsontab.xml Fri Mar 17 15:34:53 2017 -0400 @@ -1,23 +1,20 @@ - + This tool converts RGI json output file to tab-demited output - rgi - - - - + - + + @@ -26,19 +23,21 @@ diff -r 679b084023ad -r 259d81207224 rgi_load.xml --- a/rgi_load.xml Fri Oct 14 14:28:52 2016 -0400 +++ b/rgi_load.xml Fri Mar 17 15:34:53 2017 -0400 @@ -1,19 +1,18 @@ - + This tool loads new CARD data into RGI tool - rgi + - @@ -21,14 +20,15 @@ diff -r 679b084023ad -r 259d81207224 tools/shed.xml --- a/tools/shed.xml Fri Oct 14 14:28:52 2016 -0400 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,5 +0,0 @@ - - - - -