Previous changeset 4:5ea9dd423109 (2024-10-21) Next changeset 6:da64d663694b (2024-11-01) |
Commit message:
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/mfassignr commit 1e98df2131b9b5384ca2e4310f93270eae6f517c |
modified:
macros.xml mfassignr_mfassignCHO.xml |
b |
diff -r 5ea9dd423109 -r 59326d3b9c52 macros.xml --- a/macros.xml Mon Oct 21 09:06:25 2024 +0000 +++ b/macros.xml Tue Oct 22 07:24:55 2024 +0000 |
b |
b'@@ -84,7 +84,7 @@\n </param>\n </xml>\n \n- <xml name="mfassign_param">\n+ <xml name="mfassign_required_shared">\n <param name="ppm_err" type="integer" label="ppm_err"\n help= "Error tolerance (ppm) for formula assignment" value="3"/>\n <expand macro="ionmode_param" />\n@@ -95,6 +95,119 @@\n help= "Upper limit of molecular mass to be assigned."/>\n </xml>\n \n+ <xml name="mfassign_elements_shared">\n+ <param name="Mx" type="integer" label="Amount of Sodium adduct" value="0" help= "Sets the amount of Sodium adduct to be used in assignment."/> \n+ <param name="NH4x" type="integer" label="Amount of Ammonium adduct" value="0" help= "Sets the amount of Ammonium adduct to be used in assignment."/> \n+ <param name="Ox" type="integer" label="Maximum number of oxygen looked for in the CHOFIT core" value="30" help= "Sets the maximum number of oxygen looked for in the CHOFIT core, it limits the number of loops performed."/> \n+ </xml>\n+\n+ <xml name="mfassign_ratios_shared">\n+ <param name="O_Cmin" type="float" label="Minimum allowed O/C ratio" value="0" help= "Sets the minimum allowed oxygen to carbon ratio."/> \n+ <param name="O_Cmax" type="float" label="Upper limit for O/C ratio" value="2.5" help= "Sets the upper limit for oxygen to carbon ratio."/> \n+ <param name="H_Cmin" type="float" label="Lower limit for H/C ratio" value="0.1" help= "Sets the lower limit for hydrogen to carbon ratio."/> \n+ <param name="H_Cmax" type="float" label="Upper limit for H/C ratio" value="3" help= "Sets the upper limit for hydrogen to carbon ratio for assigned formulas."/>\n+ </xml>\n+\n+ <xml name="mfassign_advanced_shared">\n+ <param name="Zx" type="integer" label="Amount of charge" min="1" max="5" value="1" help= "Sets the amount of charge to be used in assignment."/> \n+ <param name="assign_typeof_ions" type="select" display="radio" label="Assign odd electron ions based on the ionization mode?" help="This parameter determines whether to assign either positive mode odd electron ions (if ionMode is positive) or negative mode odd electron ions (if ionMode is negative).">\n+ <option value="yes">yes</option>\n+ <option value="no" selected="true">no</option>\n+ </param> \n+ <param name="DBEOmin" type="float" label="Lower limit for DBE minus oxygen QA parameter" value="-13" help= "Sets the lower limit for double bond equivalent (DBE) minus oxygen QA parameter."/>\n+ <param name="DBEOmax" type="float" label="Upper limit for DBE minus oxygen QA parameter" value="13" help= "Sets the upper limit for double bond equivalent (DBE) minus oxygen QA parameter."/> \n+ <param name="Omin" type="integer" min="0" label="Lower limit for number of O in assigned formula" value="0" help= "Sets the lower limit for oxygen number in assigned formula."/> \n+ <param name="max_def" type="float" min="0" max="1" label="Upper limit for KMD" value="0.9" help= "Sets the upper limit of mass defect for using floor() instead of round() for KMD."/> \n+ <param name="min_def" type="float" min="0" max="1" label="Lower limit for KMD" value="0.5" help= "Sets the lower limit of mass defect for using floor() instead of round() for KMD."/> \n+ <param name = "HetCut" type="select" display="radio" label="Turn on the high heteroatom QA parameter?" help= "HetCut turns on or off the high heteroatom QA parameter.">\n+ <option value="on">yes</option>\n+ <option value="off" selected="true">no</option> \n+ </param> \n+ <param name = "NMScut" type="select" display="radio" label="NMScut" help= "Turn on the nominal mass series QA parameter?">\n+ <option value="on" selected="true">yes</option>\n+ <option value="off">no</option> \n+ </param> \n+ <param name="nLoop" type="integer" min="1" label="Number of times the KMD and z* series assig'..b'n assign"/> \n+ <param name="Sx" type="integer" label="Amount of Sulphur 32" value="0" help= "Sets the maximum allowable number of Sulfur 32 to be used in assign"/> \n+ <param name="Px" type="integer" label="Amount of Phosphorus 31" value="0" help= "Sets the maximum allowable number of Phosphorus 31 to be used in assign"/> \n+ <param name="Ex" type="integer" label="Amount of Carbon 13" value="0" help= "Sets the amount of Carbon 13 to be used in assignment."/> \n+ <param name="S34x" type="integer" label="Amount of Sulfur 34" value="0" help= "Sets the amount of Sulfur 34 to be used in assignment."/> \n+ <param name="N15x" type="integer" label="Amount of Nitrogen 15" value="0" help= "Sets the amount of Nitrogen 15 to be used in assignment."/> \n+ <param name="Dx" type="integer" label="Amount of Deuterium" value="0" help= "Sets the amount of Deuterium to be used in assignment."/>\n+ <param name="Clx" type="integer" label="Amount of Chlorine" value="0" help= "Sets the amount of Chlorine to be used in assignment."/>\n+ <param name="Fx" type="integer" label="Amount of Fluorine" value="0" help= "Sets the amount of Fluorine to be used in assignment."/>\n+ <param name="Cl37x" type="integer" label="Amount of Chlorine 37" value="0" help= "Sets the amount of Chlorine 37 to be used in assignment."/>\n+ <param name="Br81x" type="integer" label="Amount of Bromine 81" value="0" help= "Sets the amount of Bromine 81 to be used in assignment."/>\n+ <param name="Ix" type="integer" label="Amount of Iodine 127" value="0" help= "Sets the amount of Iodine 127 to be used in assignment."/>\n+ <expand macro="mfassign_elements_shared" />\n+ </section>\n+\n+ <section name="set_valence" title="Set the valence" expanded="false">\n+ <expand macro="mfassign_valence_param"/>\n+ </section>\n+\n+ <section name="set_ratios" title="Set the ratios" expanded="false">\n+ <expand macro="mfassign_ratios_shared" /> \n+ <param name="S34_abund" type="integer" min="0" max="100" label="Maximum 34S/32S isotope ratio" value="30" help= "Sets the maximum 34S/32S isotope ratio (in percent) for isotope matching."/>\n+ <param name="C13_abund" type="integer" min="0" max="100" label="Maximum 13C/12C isotope ratio" value="60" help= "Sets the maximum 13C/12C isotope ratio (in percent) for isotope matching."/>\n+ </section>\n+\n+ <section name="other_params" title="Other" expanded="false">\n+ <param name="iso_err" type="integer" min="0" max="20" label="Error tolerance (ppm) for polyisotope matching" value="3" help= "Sets the the error tolerance (ppm) for polyisotope matching."/>\n+ <expand macro="mfassign_advanced_shared" />\n+ <param name = "SulfCheck" type="select" display="radio" label="Turn on the sulfur isotope check?" help= "Turns on or off the sulfur isotope check QA parameter.c">\n+ <option value="on" selected="true">yes</option>\n+ <option value="off">no</option> \n+ </param> \n+ <param name = "N3corr" type="select" display="radio" label="Turn on the correction of N3OS monoisotopic assignments to 13C assignment?" help= "Turns on or off correction of N3OS monoisotopic assignments to 13C assignment.">\n+ <option value="on" selected="true">yes</option>\n+ <option value="off">no</option> \n+ </param>\n+ <param name="DeNovo" type="float" label="De novo cut point for the data" value="300" help= "Sets the de novo cut point for the data."/> \n+ </section>\n+ </section>\n+ </xml>\n+\n <xml name="findrecalseries_param">\n <param name="input_file" type="data" format="tabular" label="Input data"\n help= "Recalibration series, output from RecalList"/>\n' |
b |
diff -r 5ea9dd423109 -r 59326d3b9c52 mfassignr_mfassignCHO.xml --- a/mfassignr_mfassignCHO.xml Mon Oct 21 09:06:25 2024 +0000 +++ b/mfassignr_mfassignCHO.xml Tue Oct 22 07:24:55 2024 +0000 |
[ |
@@ -1,4 +1,4 @@ -<tool id="mfassignr_mfassignCHO" name="MFAssignR MFAssignCHO" version="@TOOL_VERSION@+galaxy0" profile="23.0"> +<tool id="mfassignr_mfassignCHO" name="MFAssignR MFAssignCHO" version="@TOOL_VERSION@+galaxy1" profile="23.0"> <description>Molecular formula assignment (only with CHO).</description> <macros> <import>macros.xml</import> @@ -22,6 +22,18 @@ iso <- read.delim("$input_iso", sep="\t") #end if SN = $sn_ratio * $kmdn + POEx = 0 + NOEx = 0 + + #if "$assign_typeof_ions"=="yes" + #if $ionMode=="pos" + POEx = 1 + NOEx = 0 + #else + POEx = 0 + NOEx = 1 + #end if + #end if MF_CHO_assign <- MFAssignR::MFAssignCHO( peaks = mono, @@ -32,7 +44,29 @@ lowMW = $lowMW, highMW = $highMW, ppm_err = $ppm_err, - SN = SN + SN = SN, + POEx = POEx, + NOEx = NOEx, + Ex = $Ex, + Mx = $Mx, + NH4x = $NH4x, + Zx = $Zx, + Ox = $Ox, + O_Cmin = $O_Cmin, + O_Cmax = $O_Cmax, + H_Cmin = $H_Cmin, + H_Cmax = $H_Cmax, + DBEOmin = $DBEOmin, + DBEOmax = $DBEOmax, + Omin = $Omin, + max_def = $max_def, + min_def = $min_def, + HetCut = "$HetCut", + NMScut = "$NMScut", + DeNovo = $DeNovo, + nLoop = $nLoop, + Ambig = "$ambig_bool", + MSMS = "$MSMS" ) write.table(MF_CHO_assign[['Unambig']], file = '$Unambig', row.names= FALSE, sep = "\t") @@ -52,7 +86,7 @@ help= "Data frame containing monoisotopic masses, output from the IsoFiltR function"/> <param name="input_iso" optional="true" type="data" format="tabular" label="Data frame of isotopic masses" help= "Data frame containing isotopic masses, output from the IsoFiltR function"/> - <expand macro="mfassign_param"/> + <expand macro="mfassigncho_param"/> </inputs> <outputs> <data name="Unambig" format="tabular" label="Unambiguous assignments by ${tool.name} on ${on_string}"/> |