Mercurial > repos > iuc > data_manager_homer_preparse
diff data_manager/homer_install_promoters.xml @ 1:d9c177013aba draft
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_homer_preparse commit 16a919905f336e34e237388c1921d0f4f8a368af
| author | iuc |
|---|---|
| date | Thu, 06 Apr 2023 16:20:54 +0000 |
| parents | |
| children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/data_manager/homer_install_promoters.xml Thu Apr 06 16:20:54 2023 +0000 @@ -0,0 +1,57 @@ +<tool id="homer_install_promoters_data_manager" name="Homer install promoter DB" tool_type="manage_data" version="@TOOL_VERSION@" profile="22.01"> + <requirements> + <requirement type="package" version="@TOOL_VERSION@">homer</requirement> + <requirement type="package" version="3.11">python</requirement> + </requirements> + <macros> + <token name="@TOOL_VERSION@">4.11</token> + </macros> + <command detect_errors="exit_code"><![CDATA[ + cp -r \$(dirname \$(which findMotifs.pl))/../share/homer ./ && + perl ./homer/configureHomer.pl -install ${organism}-p ${organism}-o -keepScript && + + organism_version=\$(cat homer/config.txt | grep "accession and ontology information" | grep $organism | cut -f 2) && + promoter_version=\$(cat homer/config.txt | grep promoters | grep $organism | cut -f 2) && + + python '$__tool_directory__/homer_install_promoters.py' + '${out_file}' + --organism $organism + --organism_version \${organism_version} + --promoter_version \${promoter_version} + --data_table_name homer_promoters + --DB_path homer + ]]></command> + <inputs> + <param name="organism" type="select" label="Select a target organism to download" help="Promoter, GO and accession information will be downloaded and the data dir will be stored to reduce the network bandwidth during execution of the tool. Always the newest available version will be downloaded."> + <option value="arabidopsis">arabidopsis (Arabidopsis thaliana)</option> + <option value="chicken">chicken (Gallus gallus)</option> + <option value="fly">fly (Drosophila melanogaster)</option> + <option value="frog">frog (Xenopus tropicalis)</option> + <option value="human">human (Homo sapiens)</option> + <option value="mouse">mouse (Mus musculus)</option> + <option value="rat">rat (Rattus norvegicus)</option> + <option value="worm" selected="true">worm (Caenorhabditis elegans)</option> + <option value="yeast">yeast (Saccharomyces cerevisiae)</option> + <option value="zebrafish">zebrafish (Danio rerio)</option> + </param> + </inputs> + <outputs> + <data name="out_file" format="data_manager_json"/> + </outputs> + <tests> + <test> + <param name="organism" value="worm"/> + <output name="out_file"> + <assert_contents> + <has_text text="{"data_tables": {"homer_promoters": [{"dbkey": "worm_"/> + <has_text text=""organism_version": "v"/> + <has_text text=""promoter_version": "v"/> + <has_text text=""organism": "worm""/> + <has_text text=""path": ""/> + </assert_contents> + </output> + </test> + </tests> + <help> + </help> +</tool>
