view SetChemicalFormulas.xml @ 4:2053b645667a draft default tip

planemo upload for repository https://forge.inrae.fr/metexplore/met4j-galaxy commit c3527564d230b36ac1a196606c60c97a5b8ad9cf
author metexplore
date Mon, 02 Feb 2026 08:51:24 +0000
parents b9d95baab679
children
line wrap: on
line source

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<tool id="met4j_SetChemicalFormulas" name="SetChemicalFormulas" version="@TOOL_VERSION@">
  <description>Set Formula to network metabolites from a tabulated file containing the metabolite ids and the formulas</description>
  <macros>
    <import>macros.xml</import>
  </macros>
  <expand macro="bio_tools"/>
  <expand macro="requirements"/>
  <command detect_errors="exit_code"><![CDATA[met4j attributes.SetChemicalFormulas#if str($colformula) != 'nan':
 -cf "$colformula"
#end if
#if str($colid) != 'nan':
 -ci "$colid"
#end if
 $p
 $s
#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="-cf" label="[2] number of the column where are the formulas" name="colformula" optional="true" type="integer" value="2"/>
    <param argument="-ci" label="[1] number of the column where are the metabolite 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 M_ to metabolite ids" name="p" truevalue="-p" type="boolean" value="false"/>
    <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"/>
    <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/>
  <help><![CDATA[Set Formula to network metabolites from a tabulated file containing the metabolite ids and the formulas
The ids must correspond between the tabulated file and the SBML file.
If prefix or suffix is different in the SBML file, use the -p or the -s options.
The formula will be written in the SBML file in two locations:+
- in the metabolite HTML notes (e.g. formula: C16H29O2)
- as a fbc attribute (e.g. fbc:chemicalFormula="C16H29O2")
@ATTRIBUTION@]]></help>
  <citations>
    <citation type="doi">10.1515/jib-2017-0082</citation>
  </citations>
</tool>