Mercurial > repos > metexplore > met4j
comparison build/tools/SbmlSetFormulasFromFile/SbmlSetFormulasFromFile.xml @ 6:7a6f2380fc1d draft
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy
author | metexplore |
---|---|
date | Wed, 17 May 2023 13:26:37 +0000 |
parents | |
children | 1436e9cde9c9 |
comparison
equal
deleted
inserted
replaced
5:35c9abcd8934 | 6:7a6f2380fc1d |
---|---|
1 <?xml version="1.0" encoding="UTF-8"?> | |
2 <tool id="met4j_SbmlSetFormulasFromFile" name="SbmlSetFormulasFromFile" version="1.3.0"> | |
3 <description>Set Formula to network metabolites from a tabulated file containing the metabolite ids and the formulas</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:1.3.0</container> | |
9 </requirements> | |
10 <command detect_errors="exit_code"><![CDATA[sh /usr/bin/met4j.sh attributes.SbmlSetFormulasFromFile#if str($colformula) != 'nan': | |
11 -cf "$colformula" | |
12 #end if | |
13 #if str($colid) != 'nan': | |
14 -ci "$colid" | |
15 #end if | |
16 $p | |
17 $s | |
18 #if str($nSkip): | |
19 -n "$nSkip" | |
20 #end if | |
21 -sbml "$sbml" | |
22 #if str($tab) != 'None': | |
23 -tab "$tab" | |
24 #end if | |
25 #if str($c): | |
26 -c "$c" | |
27 #end if | |
28 -out "$out" | |
29 ]]></command> | |
30 <inputs> | |
31 <param argument="-cf" label="[2] number of the column where are the formulas" name="colformula" optional="true" type="integer" value="2"/> | |
32 <param argument="-ci" label="[1] number of the column where are the metabolite ids" name="colid" optional="true" type="integer" value="1"/> | |
33 <param argument="-p" checked="false" falsevalue="" label="[deactivated] To match the objects in the sbml file, adds the prefix M_ to metabolite ids" name="p" truevalue="-p" type="boolean" value="false"/> | |
34 <param argument="-s" checked="false" falsevalue="" label="[deactivated] To match the objects in the sbml file, adds the suffix _comparmentID to metabolites" name="s" truevalue="-s" type="boolean" value="false"/> | |
35 <param argument="-n" label="[0] Number of lines to skip at the beginning of the tabulated file" name="nSkip" optional="true" type="text" value="0"> | |
36 <sanitizer invalid_char="_"> | |
37 <valid initial="string.printable"/> | |
38 </sanitizer> | |
39 </param> | |
40 <param argument="-sbml" format="sbml" label="Original sbml file" name="sbml" optional="false" type="data" value=""/> | |
41 <param argument="-tab" format="tsv" label="Tabulated file" name="tab" optional="true" type="data" value=""/> | |
42 <param argument="-c" label="[#] Comment String in the tabulated file. The lines beginning by this string won't be read" name="c" optional="true" type="text" value="#"> | |
43 <sanitizer invalid_char="_"> | |
44 <valid initial="string.printable"/> | |
45 </sanitizer> | |
46 </param> | |
47 </inputs> | |
48 <outputs> | |
49 <data format="sbml" name="out"/> | |
50 </outputs> | |
51 <tests> | |
52 <test> | |
53 <param name="sbml" value="toy_model.xml"/> | |
54 <param name="tab" value="formula.tsv"/> | |
55 <output ftype="sbml" name="out"> | |
56 <assert_contents> | |
57 <is_valid_xml/> | |
58 <has_line_matching expression=".*CH6O6.*" n="2"/> | |
59 <has_line_matching expression=".*CH12O4.*" n="2"/> | |
60 </assert_contents> | |
61 </output> | |
62 </test> | |
63 <test expect_failure="true"> | |
64 <param name="sbml" value="toy_model.xml"/> | |
65 <param name="tab" value="formulaBad.tsv"/> | |
66 </test> | |
67 </tests> | |
68 <help><![CDATA[Set Formula to network metabolites from a tabulated file containing the metabolite ids and the formulas | |
69 The ids must correspond between the tabulated file and the SBML file. | |
70 If prefix or suffix is different in the SBML file, use the -p or the -s options. | |
71 The formula will be written in the SBML file in two locations:+ | |
72 - in the metabolite notes (e.g. <p>formula: C16H29O2</p> | |
73 | |
74 - as a fbc attribute (e.g. fbc:chemicalFormula="C16H29O2")]]></help> | |
75 <citations/> | |
76 </tool> |