Mercurial > repos > metexplore > met4j_setecnumbers
view SetEcNumbers.xml @ 2:6730f794d451 draft default tip
planemo upload for repository https://forge.inrae.fr/metexplore/met4j-galaxy commit 71335d4a636672d264cc4f443c07856907571928
| author | metexplore |
|---|---|
| date | Fri, 21 Nov 2025 10:23:25 +0000 |
| parents | 8300b31b0e2b |
| children |
line wrap: on
line source
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <tool id="met4j_SetEcNumbers" name="SetEcNumbers" version="@TOOL_VERSION@"> <description>Set EC numbers to reactions in a SBML file from a tabulated file containing the reaction ids and the EC numbers</description> <macros> <import>macros.xml</import> </macros> <expand macro="bio_tools"/> <expand macro="requirements"/> <command detect_errors="exit_code"><![CDATA[met4j attributes.SetEcNumbers#if str($colec) != 'nan': -cec "$colec" #end if #if str($colid) != 'nan': -ci "$colid" #end if $p #if str($nSkip): -n "$nSkip" #end if -i "$sbml" #if str($tab) != 'None': -tab "$tab" #end if #if str($c): -c "$c" #end if -o "$out" ]]></command> <inputs> <param argument="-cec" label="[2] number of the column where are the ecs" name="colec" optional="true" type="integer" value="2"/> <param argument="-ci" label="[1] number of the column where are the reaction ids" name="colid" optional="true" type="integer" value="1"/> <param argument="-p" checked="false" falsevalue="" label="[deactivated] To match the objects in the sbml file, adds the prefix R_ to reactions" name="p" truevalue="-p" type="boolean" value="false"/> <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"> <sanitizer invalid_char="_"> <valid initial="string.printable"/> </sanitizer> </param> <param argument="-i" format="sbml" label="Original SBML file" name="sbml" optional="false" type="data" value=""/> <param argument="-tab" format="tsv" label="Input Tabulated file" name="tab" optional="true" type="data" value=""/> <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="#"> <sanitizer invalid_char="_"> <valid initial="string.printable"/> </sanitizer> </param> </inputs> <outputs> <data format="sbml" name="out"/> </outputs> <tests> <test> <param name="sbml" value="toy_model.xml"/> <param name="tab" value="ec.tsv"/> <output ftype="sbml" name="out"> <assert_contents> <is_valid_xml/> <has_line_matching expression=".*1.1.1.1.*" n="2"/> <has_line_matching expression=".*1.2.3.4.*" n="2"/> </assert_contents> </output> </test> <test expect_failure="true"> <param name="sbml" value="toy_model.xml"/> <param name="tab" value="ecBad.tsv"/> </test> </tests> <help><![CDATA[Set EC numbers to reactions in a SBML file from a tabulated file containing the reaction ids and the EC numbers The ids must correspond between the tabulated file and the SBML file. If prefix R_ is present in the ids in the SBML file and not in the tabulated file, use the -p option. The EC will be written in the SBML file in two locations: - in the reaction HTML notes (e.g. EC_NUMBER: 2.4.2.14) - as a reaction MIRIAM annotation (see https://pubmed.ncbi.nlm.nih.gov/16333295/) with ec-code identifiers link (https://registry.identifiers.org/registry/ec-code) @ATTRIBUTION@]]></help> <citations> <citation type="doi">10.1038/nbt1156</citation> </citations> </tool>
