2 parts to this:
1
the tic * it.ms quantity is used so frequently, it seems sensible to have the default aggregators in isoorbi simply introduce the column TICxIT = tic * it.ms/1000 which is useful because it can also be directly compared to agcTarget having the same units operationally (a number that reflects injected ion count). This makes it then easy to plot agg_data |> orbi_plot_raw_data(y = TICxIT / agcTarget) + scale_y_continuous(labels = scales::label_percent()) (or maybe allow agg_data |> orbi_plot_raw_data(y = TICxIT / agcTarget, y_scale = "percent")) ).
key question: should it be ticxit, ticXit or TICxIT @123caj @elliottmueller?
2
the agc_xxx parameters in orbi_flag_outliers are really misnomers since agc (automatic gain control) is not what is being used here for cutoffs, it's really the TICxIT so these should be renamed to e.g. TICxIT_absolute_cutoff (which is agc_absolute_cutoff/1000), TICxIT_percentage_cutoff (which is the same as agc_window) and TICxIT_fold_cutoff (which is the same as agc_fold_cutoff).
@FR86: does this seem like a sensible direction (the old parameters would still work, just have a deprecation warning)
2 parts to this:
1
the
tic * it.msquantity is used so frequently, it seems sensible to have the default aggregators in isoorbi simply introduce the columnTICxIT = tic * it.ms/1000which is useful because it can also be directly compared toagcTargethaving the same units operationally (a number that reflects injected ion count). This makes it then easy to plotagg_data |> orbi_plot_raw_data(y = TICxIT / agcTarget) + scale_y_continuous(labels = scales::label_percent())(or maybe allowagg_data |> orbi_plot_raw_data(y = TICxIT / agcTarget, y_scale = "percent"))).key question: should it be
ticxit,ticXitorTICxIT@123caj @elliottmueller?2
the
agc_xxxparameters inorbi_flag_outliersare really misnomers since agc (automatic gain control) is not what is being used here for cutoffs, it's really theTICxITso these should be renamed to e.g.TICxIT_absolute_cutoff(which isagc_absolute_cutoff/1000),TICxIT_percentage_cutoff(which is the same asagc_window) andTICxIT_fold_cutoff(which is the same asagc_fold_cutoff).@FR86: does this seem like a sensible direction (the old parameters would still work, just have a deprecation warning)