Mercurial > repos > metexplore > met4j
comparison tools/attributes/SetGprs/SetGprs.xml @ 9:0976a6257300 draft
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy commit 05db35f63cadb9d56dafff594a3507c59cd85273
| author | metexplore |
|---|---|
| date | Fri, 31 Jan 2025 18:28:53 +0000 |
| parents | |
| children | 6a112eaf8f38 |
comparison
equal
deleted
inserted
replaced
| 8:1274e2a62479 | 9:0976a6257300 |
|---|---|
| 1 <?xml version="1.0" encoding="UTF-8" standalone="no"?> | |
| 2 <tool id="met4j_SetGprs" name="SetGprs" version="develop"> | |
| 3 <description>Create a new SBML file from an original sbml file and a tabulated file containing reaction ids and Gene association written in a cobra way</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:develop</container> | |
| 9 </requirements> | |
| 10 <command detect_errors="exit_code"><![CDATA[sh /usr/bin/met4j.sh attributes.SetGprs#if str($colgpr) != 'nan': | |
| 11 -cgpr "$colgpr" | |
| 12 #end if | |
| 13 #if str($colid) != 'nan': | |
| 14 -ci "$colid" | |
| 15 #end if | |
| 16 $p | |
| 17 #if str($nSkip): | |
| 18 -n "$nSkip" | |
| 19 #end if | |
| 20 -i "$sbml" | |
| 21 #if str($tab) != 'None': | |
| 22 -tab "$tab" | |
| 23 #end if | |
| 24 #if str($c): | |
| 25 -c "$c" | |
| 26 #end if | |
| 27 -o "$out" | |
| 28 ]]></command> | |
| 29 <inputs> | |
| 30 <param argument="-cgpr" label="[2] number of the column where are the gprs" name="colgpr" optional="true" type="integer" value="2"/> | |
| 31 <param argument="-ci" label="[1] number of the column where are the reaction ids" name="colid" optional="true" type="integer" value="1"/> | |
| 32 <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"/> | |
| 33 <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"> | |
| 34 <sanitizer invalid_char="_"> | |
| 35 <valid initial="string.printable"/> | |
| 36 </sanitizer> | |
| 37 </param> | |
| 38 <param argument="-i" format="sbml" label="Original SBML file" name="sbml" optional="false" type="data" value=""/> | |
| 39 <param argument="-tab" format="tsv" label="Input Tabulated file" name="tab" optional="true" type="data" value=""/> | |
| 40 <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="#"> | |
| 41 <sanitizer invalid_char="_"> | |
| 42 <valid initial="string.printable"/> | |
| 43 </sanitizer> | |
| 44 </param> | |
| 45 </inputs> | |
| 46 <outputs> | |
| 47 <data format="sbml" name="out"/> | |
| 48 </outputs> | |
| 49 <tests> | |
| 50 <test> | |
| 51 | |
| 52 | |
| 53 | |
| 54 | |
| 55 | |
| 56 | |
| 57 <param name="sbml" value="toy_model.xml"/> | |
| 58 | |
| 59 | |
| 60 | |
| 61 | |
| 62 | |
| 63 | |
| 64 <param name="tab" value="gpr.tsv"/> | |
| 65 | |
| 66 | |
| 67 | |
| 68 | |
| 69 | |
| 70 | |
| 71 <output ftype="sbml" name="out"> | |
| 72 | |
| 73 | |
| 74 | |
| 75 | |
| 76 | |
| 77 | |
| 78 <assert_contents> | |
| 79 | |
| 80 | |
| 81 | |
| 82 | |
| 83 | |
| 84 | |
| 85 <is_valid_xml/> | |
| 86 | |
| 87 | |
| 88 | |
| 89 | |
| 90 | |
| 91 | |
| 92 <has_line_matching expression=".*fbc:id=.G1.*" n="1"/> | |
| 93 | |
| 94 | |
| 95 | |
| 96 | |
| 97 | |
| 98 | |
| 99 <has_line_matching expression=".*fbc:id=.G2.*" n="1"/> | |
| 100 | |
| 101 | |
| 102 | |
| 103 | |
| 104 | |
| 105 | |
| 106 <has_line_matching expression=".*fbc:id=.G3.*" n="1"/> | |
| 107 | |
| 108 | |
| 109 | |
| 110 | |
| 111 | |
| 112 | |
| 113 <has_line_matching expression=".*fbc:id=.G4.*" n="1"/> | |
| 114 | |
| 115 | |
| 116 | |
| 117 | |
| 118 | |
| 119 | |
| 120 <has_line_matching expression=".*fbc:geneProductRef fbc:geneProduct=.G1.*" n="1"/> | |
| 121 | |
| 122 | |
| 123 | |
| 124 | |
| 125 | |
| 126 | |
| 127 <has_line_matching expression=".*fbc:geneProductRef fbc:geneProduct=.G2.*" n="1"/> | |
| 128 | |
| 129 | |
| 130 | |
| 131 | |
| 132 | |
| 133 | |
| 134 <has_line_matching expression=".*fbc:geneProductRef fbc:geneProduct=.G3.*" n="1"/> | |
| 135 | |
| 136 | |
| 137 | |
| 138 | |
| 139 | |
| 140 | |
| 141 <has_line_matching expression=".*fbc:geneProductRef fbc:geneProduct=.G4.*" n="1"/> | |
| 142 | |
| 143 | |
| 144 | |
| 145 | |
| 146 | |
| 147 | |
| 148 <has_line_matching expression=".*fbc:and.*" n="2"/> | |
| 149 | |
| 150 | |
| 151 | |
| 152 | |
| 153 | |
| 154 | |
| 155 </assert_contents> | |
| 156 | |
| 157 | |
| 158 | |
| 159 | |
| 160 | |
| 161 | |
| 162 </output> | |
| 163 | |
| 164 | |
| 165 | |
| 166 | |
| 167 | |
| 168 | |
| 169 </test> | |
| 170 </tests> | |
| 171 <help><![CDATA[Create a new SBML file from an original sbml file and a tabulated file containing reaction ids and Gene association written in a cobra way | |
| 172 The ids must correspond between the tabulated file and the SBML file. | |
| 173 If prefix R_ is present in the ids in the SBML file and not in the tabulated file, use the -p option. | |
| 174 GPR must be written in a cobra way in the tabulated file as described in Schellenberger et al 2011 Nature Protocols 6(9):1290-307 | |
| 175 (The GPR will be written in the SBML file in two locations: | |
| 176 - in the reaction html notes (GENE_ASSOCIATION: ( XC_0401 ) OR ( XC_3282 )) | |
| 177 - as fbc gene product association (see FBC package specifications: https://doi.org/10.1515/jib-2017-0082)]]></help> | |
| 178 <citations> | |
| 179 <citation type="doi">10.1038/nprot.2011.308</citation> | |
| 180 <citation type="doi">10.1515/jib-2017-0082</citation> | |
| 181 </citations> | |
| 182 </tool> |
