Computes per-group statistics of the abundances and, from them, the limit of
detection (LOD) used by build_model_impute to impute groups
without observations.
Public fields
datadata
configconfig
probquantile of groups with one observed value to estimate LOD
statsdata.frame with group statistics
Methods
MissingHelpers$get_lod()
determine limit of detection computes quantile of abundances in groups with a single observation; without such groups, of the partly observed groups with the fewest observations, and when every group is complete or empty, the lowest group mean
Examples
dd <- prolfqua::sim_lfq_data_protein_config(n_proteins = 100,weight_missing = 1)
#> `protein_Id`: columns `proteinID`, `idtype2` united with separator '~'.
#> creating sampleName from file_name column
#> setup_analysis: dropped 5 unconfigured columns: average_prot_abundance, sd, mean, N, Replicate.
#> setup_analysis: added 406 rows with NA response for feature and sample combinations absent from the input.
mh <- prolfqua::MissingHelpers$new(dd$data, dd$config, prob = 0.8)
xx <- mh$get_stats()
xx <- mh$get_lod()
dd <- prolfqua::sim_lfq_data_2factor_config(n_proteins = 100,weight_missing = 0.1)
#> `protein_Id`: columns `proteinID`, `idtype2` united with separator '~'.
#> creating sampleName from file_name column
#> setup_analysis: dropped 6 unconfigured columns: average_prot_abundance, sd, group, mean, N, Replicate.
#> setup_analysis: added 97 rows with NA response for feature and sample combinations absent from the input.
mh <- prolfqua::MissingHelpers$new(dd$data, dd$config, prob = 0.8)
mh$get_stats()$interaction |> table()
#>
#> TreatmentA:BackgroundX TreatmentB:BackgroundX TreatmentA:BackgroundZ
#> 100 100 100
#> TreatmentB:BackgroundZ TreatmentA TreatmentB
#> 100 100 100
#> BackgroundX BackgroundZ
#> 100 100
mh$get_lod()
#> [1] 15.24351