Mercurial > repos > metexplore > met4j_setpathways
comparison SetPathways.xml @ 0:781eb27e0f5a draft
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy commit e28ca123295d50b85ba872e5a4720fd72697ecc3
| author | metexplore |
|---|---|
| date | Thu, 13 Mar 2025 15:52:07 +0000 |
| parents | |
| children | 2d11c51ed536 |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 0:781eb27e0f5a |
|---|---|
| 1 <?xml version="1.0" encoding="UTF-8" standalone="no"?> | |
| 2 <tool id="met4j_SetPathways" name="SetPathways" version="@TOOL_VERSION@"> | |
| 3 <description>Set pathway to reactions in a network from a tabulated file containing the reaction ids and the pathways</description> | |
| 4 <macros> | |
| 5 <import>macros.xml</import> | |
| 6 </macros> | |
| 7 <expand macro="bio_tools"/> | |
| 8 <expand macro="requirements"/> | |
| 9 <command detect_errors="exit_code"><![CDATA[met4j fr.inrae.toulouse.metexplore.met4j_toolbox.attributes.SetPathways#if str($colp) != 'nan': | |
| 10 -cp "$colp" | |
| 11 #end if | |
| 12 #if str($sep): | |
| 13 -sep "$sep" | |
| 14 #end if | |
| 15 #if str($colid) != 'nan': | |
| 16 -ci "$colid" | |
| 17 #end if | |
| 18 $p | |
| 19 #if str($nSkip): | |
| 20 -n "$nSkip" | |
| 21 #end if | |
| 22 -i "$sbml" | |
| 23 #if str($tab) != 'None': | |
| 24 -tab "$tab" | |
| 25 #end if | |
| 26 #if str($c): | |
| 27 -c "$c" | |
| 28 #end if | |
| 29 -o "$out" | |
| 30 ]]></command> | |
| 31 <inputs> | |
| 32 <param argument="-cp" label="[2] number of the column where are the pathways" name="colp" optional="true" type="integer" value="2"/> | |
| 33 <param argument="-sep" label="[|] Separator of pathways in the tabulated file" name="sep" optional="true" type="text" value="|"> | |
| 34 <sanitizer invalid_char="_"> | |
| 35 <valid initial="string.printable"/> | |
| 36 </sanitizer> | |
| 37 </param> | |
| 38 <param argument="-ci" label="[1] number of the column where are the reaction ids" name="colid" optional="true" type="integer" value="1"/> | |
| 39 <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"/> | |
| 40 <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"> | |
| 41 <sanitizer invalid_char="_"> | |
| 42 <valid initial="string.printable"/> | |
| 43 </sanitizer> | |
| 44 </param> | |
| 45 <param argument="-i" format="sbml" label="Original SBML file" name="sbml" optional="false" type="data" value=""/> | |
| 46 <param argument="-tab" format="tsv" label="Input Tabulated file" name="tab" optional="true" type="data" value=""/> | |
| 47 <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="#"> | |
| 48 <sanitizer invalid_char="_"> | |
| 49 <valid initial="string.printable"/> | |
| 50 </sanitizer> | |
| 51 </param> | |
| 52 </inputs> | |
| 53 <outputs> | |
| 54 <data format="sbml" name="out"/> | |
| 55 </outputs> | |
| 56 <tests> | |
| 57 <test> | |
| 58 <param name="sbml" value="toy_model.xml"/> | |
| 59 <param name="tab" value="pathways.tsv"/> | |
| 60 <output ftype="sbml" name="out"> | |
| 61 <assert_contents> | |
| 62 <is_valid_xml/> | |
| 63 <has_line_matching expression=".*groups:id=.*" n="3"/> | |
| 64 <has_line_matching expression=".*groups:id=.p1.*" n="1"/> | |
| 65 <has_line_matching expression=".*groups:id=.p2.*" n="1"/> | |
| 66 <has_line_matching expression=".*groups:id=.p3.*" n="1"/> | |
| 67 </assert_contents> | |
| 68 </output> | |
| 69 </test> | |
| 70 <test> | |
| 71 <param name="sbml" value="toy_model.xml"/> | |
| 72 <param name="tab" value="pathwaysOtherSep.tsv"/> | |
| 73 <param name="sep" value=" + "/> | |
| 74 <output ftype="sbml" name="out"> | |
| 75 <assert_contents> | |
| 76 <is_valid_xml/> | |
| 77 <has_line_matching expression=".*groups:id=.*" n="3"/> | |
| 78 <has_line_matching expression=".*groups:id=.p1.*" n="1"/> | |
| 79 <has_line_matching expression=".*groups:id=.p2.*" n="1"/> | |
| 80 <has_line_matching expression=".*groups:id=.p3.*" n="1"/> | |
| 81 </assert_contents> | |
| 82 </output> | |
| 83 </test> | |
| 84 </tests> | |
| 85 <help><![CDATA[Set pathway to reactions in a network from a tabulated file containing the reaction ids and the pathways | |
| 86 The ids must correspond between the tabulated file and the SBML file. | |
| 87 If prefix R_ is present in the ids in the SBML file and not in the tabulated file, use the -p option. | |
| 88 Pathways will be written in the SBML file in two ways:- as reaction note (e.g. SUBSYSTEM: purine_biosynthesis)- as SBML group (see Group package specifications: https://pmc.ncbi.nlm.nih.gov/articles/PMC5451322/) | |
| 89 @ATTRIBUTION@]]></help> | |
| 90 <citations> | |
| 91 <citation type="doi">10.1515/jib-2016-290</citation> | |
| 92 </citations> | |
| 93 </tool> |
