comparison tools/attributes/ExtractSbmlAnnot/ExtractSbmlAnnot.xml @ 0:dcd16521b969 draft

planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy commit 5dab0a2d83a1fdd7a1878a50ba0f24e752505393
author metexplore
date Fri, 10 Jun 2022 10:31:34 +0000
parents
children 9b162ee6ff8e
comparison
equal deleted inserted replaced
-1:000000000000 0:dcd16521b969
1 <?xml version="1.0" encoding="UTF-8"?>
2 <tool id="met4j_ExtractSbmlAnnot" name="ExtractSbmlAnnot" version="0.11.0">
3 <description>Extract databases' references from SBML annotations or notes.</description>
4 <xrefs>
5 <xref type="bio.tools">met4j</xref>
6 </xrefs>
7 <requirements>
8 <container type="singularity">oras://registry.forgemia.inra.fr/metexplore/met4j/met4j-singularity:0.11.0</container>
9 </requirements>
10 <command detect_errors="exit_code"><![CDATA[sh /usr/bin/met4j.sh attributes.ExtractSbmlAnnot -i "$inputPath"
11 -export "$export"
12 -db "$db"
13 $uniq
14 $skip
15 -o "$outputPath"
16 ]]></command>
17 <inputs>
18 <param argument="-i" format="sbml" label="input SBML file" name="inputPath" optional="false" type="data" value=""/>
19 <param argument="-export" label="the type of entity to extract annotation, either metabolite, reaction, or gene" name="export" optional="false" type="select" value="METABOLITE">
20 <option selected="true" value="METABOLITE">METABOLITE</option>
21 <option value="REACTION">REACTION</option>
22 <option value="GENE">GENE</option>
23 </param>
24 <param argument="-db" label="name of the referenced database to export annotations from, as listed in notes or identifiers.org base uri" name="db" optional="false" type="text" value="">
25 <sanitizer invalid_char="_">
26 <valid initial="string.printable"/>
27 </sanitizer>
28 </param>
29 <param argument="-uniq" checked="false" falsevalue="" label="keep only one identifier if multiple are referenced for the same entity" name="uniq" truevalue="-uniq" type="boolean" value="false"/>
30 <param argument="-skip" checked="false" falsevalue="" label="Skip entities without the selected annotations, by default output them with NA value" name="skip" truevalue="-skip" type="boolean" value="false"/>
31 </inputs>
32 <outputs>
33 <data format="tsv" name="outputPath"/>
34 </outputs>
35 <tests>
36 <test>
37 <param name="inputPath" value="Human-GEM_pathways.xml"/>
38 <param name="export" value="METABOLITE"/>
39 <param name="db" value="metanetx.chemical"/>
40 <output ftype="tsv" name="outputPath">
41 <assert_contents>
42 <has_n_lines n="146"/>
43 <has_n_columns n="2"/>
44 </assert_contents>
45 </output>
46 </test>
47 <test>
48 <param name="inputPath" value="Human-GEM_pathways.xml"/>
49 <param name="export" value="METABOLITE"/>
50 <param name="db" value="metanetx.chemical"/>
51 <param name="skip" value="true"/>
52 <output ftype="tsv" name="outputPath">
53 <assert_contents>
54 <has_n_lines n="145"/>
55 <has_n_columns n="2"/>
56 </assert_contents>
57 </output>
58 </test>
59 <test>
60 <param name="inputPath" value="Human-GEM_pathways.xml"/>
61 <param name="export" value="METABOLITE"/>
62 <param name="db" value="metanetx.chemical"/>
63 <param name="skip" value="true"/>
64 <param name="uniq" value="true"/>
65 <output ftype="tsv" name="outputPath">
66 <assert_contents>
67 <has_n_lines n="111"/>
68 <has_n_columns n="2"/>
69 </assert_contents>
70 </output>
71 </test>
72 </tests>
73 <help><![CDATA[Extract databases' references from SBML annotations or notes. The references are exported as a tabulated file with one column with the SBML compound, reaction or gene identifiers, and one column with the corresponding database identifier.The name of the targeted database need to be provided under the same form than the one used in the notes field or the identifiers.org uri]]></help>
74 </tool>