Skip to content

Commit

Permalink
signal-to-noise separated into ratio and noise in IsoFiltR
Browse files Browse the repository at this point in the history
  • Loading branch information
KristinaGomoryova committed Oct 16, 2024
1 parent 9432288 commit 2e23ebf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 1 addition & 2 deletions tools/mfassignr/macros.xml
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,7 @@
<xml name="isofiltr_param">
<param name="peaks" type="data" format="tabular" label="Input Peak Data"
help="The input data frame containing abundance and peak mass."/>
<param name="SN" type="float" value="0" label="Signal-to-Noise Ratio"
help="Sets the noise cut for the data; peaks below this value will not be evaluated."/>
<expand macro="noise_threshold_params" />
<param name="Carbrat" type="float" value="60" min="5" label="Maximum 13C/12C Ratio"
help="Sets the maximum allowed ratio for matching 13C isotopes."/>
<param name="Sulfrat" type="float" value="30" label="Maximum 34S/32S Ratio"
Expand Down
4 changes: 3 additions & 1 deletion tools/mfassignr/mfassignr_isofiltr.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,11 @@
<configfiles>
<configfile name="mfassignr_isofiltr"><![CDATA[
peaks <- read.table("$peaks", header=TRUE, sep="\t")
SN = $sn_ratio * $kmdn
result <- MFAssignR::IsoFiltR(
peaks = peaks,
SN = $SN,
SN = SN,
Carbrat = $Carbrat,
Sulfrat = $Sulfrat,
Sulferr = $Sulferr,
Expand Down

0 comments on commit 2e23ebf

Please sign in to comment.