Mercurial > repos > iuc > kegg_pathways_completeness
comparison kegg_pathways_completeness.xml @ 0:9933e2f91584 draft default tip
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/kegg_pathways_completeness commit 7352c3ea390d3cd3afe19c0af5be59d8cfbaa7cd
| author | iuc |
|---|---|
| date | Fri, 05 Dec 2025 17:34:32 +0000 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 0:9933e2f91584 |
|---|---|
| 1 <tool id="kegg_pathways_completeness" name="Calculate KEGG Pathways completeness" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="@PROFILE@"> | |
| 2 <description>Compute KEGG pathway/module completeness from KOs or per-contig annotation</description> | |
| 3 <macros> | |
| 4 <token name="@TOOL_VERSION@">1.3.0</token> | |
| 5 <token name="@VERSION_SUFFIX@">0</token> | |
| 6 <token name="@PROFILE@">24.0</token> | |
| 7 </macros> | |
| 8 <requirements> | |
| 9 <requirement type="package" version="@TOOL_VERSION@">kegg-pathways-completeness</requirement> | |
| 10 </requirements> | |
| 11 <command detect_errors="exit_code"><![CDATA[ | |
| 12 give_completeness | |
| 13 #if $usr_ref_files.definitions | |
| 14 --definitions '$usr_ref_files.definitions' | |
| 15 #end if | |
| 16 #if $usr_ref_files.names | |
| 17 --names '$usr_ref_files.names' | |
| 18 #end if | |
| 19 #if $usr_ref_files.classes | |
| 20 --classes '$usr_ref_files.classes' | |
| 21 #end if | |
| 22 $w | |
| 23 $p | |
| 24 #if str($input_type.select_input_type) == "input_list" | |
| 25 -l '$l' | |
| 26 #else | |
| 27 -i '$i' | |
| 28 #if $input_type.m | |
| 29 $input_type.m && | |
| 30 mv summary.kegg_contigs* $kegg_contig_table | |
| 31 #end if | |
| 32 #end if | |
| 33 && | |
| 34 mv summary.kegg_pathways* $kegg_pathways_table | |
| 35 ]]></command> | |
| 36 <inputs> | |
| 37 <conditional name="input_type"> | |
| 38 <param name="select_input_type" type="select" label="Select input format" help="See the Help section below for examples"> | |
| 39 <option value="input_file">Table with one pathway per row</option> | |
| 40 <option value="input_list">Text file containing a comma-separated list of KOs</option> | |
| 41 </param> | |
| 42 <when value="input_file"> | |
| 43 <param argument="-i" label="Input file" type="data" format="tabular"/> | |
| 44 <param argument="-m" type="boolean" truevalue="-m" falsevalue="" checked="false" label="Creates per-contig summary table"/> | |
| 45 </when> | |
| 46 <when value="input_list"> | |
| 47 <param argument="-l" label="Input list" type="data" format="txt"/> | |
| 48 </when> | |
| 49 </conditional> | |
| 50 <section name="usr_ref_files" title="Custom Reference Files" help="Optionally, provide your own KEGG reference files instead of using the default KEGG database"> | |
| 51 <param argument="--definitions" label="All modules definitions" type="data" format="txt" optional="true"/> | |
| 52 <param argument="--names" label="Modules names" type="data" format="txt" optional="true"/> | |
| 53 <param argument="--classes" label="Modules classes" type="data" format="txt" optional="true"/> | |
| 54 </section> | |
| 55 <param argument="-w" type="boolean" truevalue="-w" falsevalue="" checked="false" label="Add weights for each KO in output"/> | |
| 56 <param argument="-p" type="boolean" truevalue="-p" falsevalue="" checked="false" label="Create images with pathways completeness"/> | |
| 57 </inputs> | |
| 58 <outputs> | |
| 59 <data name="kegg_pathways_table" format="tsv" label="${tool.name} on ${on_string}: KEGG pathway completness table"/> | |
| 60 <data name="kegg_contig_table" format="tsv" label="${tool.name} on ${on_string}: KEGG contig pathway completness table"> | |
| 61 <filter>input_type['select_input_type'] == "input_file" and input_type['m'] is True</filter> | |
| 62 </data> | |
| 63 <collection name="pathway_plots" type="list" label="${tool.name} on ${on_string}: Pathway plots" format="png"> | |
| 64 <filter>p is True</filter> | |
| 65 <discover_datasets pattern="(?P<designation>.+).png" directory="pathways_plots"/> | |
| 66 </collection> | |
| 67 </outputs> | |
| 68 <tests> | |
| 69 <test expect_num_outputs="3"> | |
| 70 <conditional name="input_type"> | |
| 71 <param name="select_input_type" value="input_file"/> | |
| 72 <param name="i" value="input_file.tabular"/> | |
| 73 <param name="m" value="true"/> | |
| 74 </conditional> | |
| 75 <section name="usr_ref_files"> | |
| 76 <param name="definitions" value="all_pathways.txt"/> | |
| 77 <param name="names" value="all_pathways_names.txt"/> | |
| 78 <param name="classes" value="all_pathways_class.txt"/> | |
| 79 </section> | |
| 80 <param name="w" value="true"/> | |
| 81 <param name="p" value="true"/> | |
| 82 <output name="kegg_pathways_table" file="summary.kegg_pathways.with_wreights.tsv" ftype="tsv"/> | |
| 83 <output name="kegg_pathways_table" file="summary.kegg_contigs.with_weights.tsv" ftype="tsv"/> | |
| 84 <output_collection name="pathway_plots" type="list" count="9"> | |
| 85 <element name="M00003" file="pathway_plots/M00003.png" ftype="png"/> | |
| 86 <element name="M00017" file="pathway_plots/M00017.png" ftype="png"/> | |
| 87 <element name="M00018" file="pathway_plots/M00018.png" ftype="png"/> | |
| 88 <element name="M00082" file="pathway_plots/M00082.png" ftype="png"/> | |
| 89 <element name="M00165" file="pathway_plots/M00165.png" ftype="png"/> | |
| 90 <element name="M00873" file="pathway_plots/M00873.png" ftype="png"/> | |
| 91 <element name="M00874" file="pathway_plots/M00874.png" ftype="png"/> | |
| 92 <element name="M00885" file="pathway_plots/M00885.png" ftype="png"/> | |
| 93 <element name="M00886" file="pathway_plots/M00886.png" ftype="png"/> | |
| 94 </output_collection> | |
| 95 </test> | |
| 96 <test expect_num_outputs="1"> | |
| 97 <conditional name="input_type"> | |
| 98 <param name="select_input_type" value="input_list"/> | |
| 99 <param name="l" value="input_list.txt"/> | |
| 100 </conditional> | |
| 101 <output name="kegg_pathways_table" file="summary.kegg_pathways.tsv" ftype="tsv"/> | |
| 102 </test> | |
| 103 </tests> | |
| 104 <help><![CDATA[ | |
| 105 **Compute KEGG pathway/module completeness from KOs or per-contig annotations** | |
| 106 | |
| 107 Input formats: | |
| 108 | |
| 109 * Example input file (tabular, one pathway per row): | |
| 110 | |
| 111 contig1 K00812 K12252 K00003 | |
| 112 | |
| 113 contig1 K02990 K19302 K00645 | |
| 114 | |
| 115 * Example KO list file (comma-separated): | |
| 116 | |
| 117 K00001,K00002,K00123,K00942 | |
| 118 | |
| 119 **Tool license**: `Apache License 2.0 <https://raw.githubusercontent.com/EBI-Metagenomics/kegg-pathways-completeness-tool/refs/heads/master/LICENSE>`_ | |
| 120 ]]></help> | |
| 121 <creator> | |
| 122 <person givenName="Rand" familyName="Zoabi" url="https://github.com/RZ9082" identifier="https://orcid.org/0009-0000-2501-8053"/> | |
| 123 </creator> | |
| 124 <citations> | |
| 125 <citation type="bibtex"> | |
| 126 @misc{kegg-pathways-completeness, | |
| 127 author = {{EBIāMetagenomics}}, | |
| 128 title = {kegg-pathways-completeness-tool}, | |
| 129 howpublished = {\url{https://github.com/EBI-Metagenomics/kegg-pathways-completeness-tool}}, | |
| 130 note = {Accessed: 2025-12-05}, | |
| 131 year = {2024} | |
| 132 } | |
| 133 </citation> | |
| 134 </citations> | |
| 135 </tool> |
