Skip to contents

Summarize missing in condition as barplot

Usage

missingness_per_condition(lfqdata, factors = lfqdata$relevant_factor_keys())

Arguments

lfqdata

LFQData object with the data and its configuration

factors

factor columns to use

Value

a list with data, a wide tibble with one row per condition and one column per number of missing values holding the feature count, and figure, a ggplot bar chart of these counts

Examples


istar <- sim_lfq_data_peptide_config()
#> `protein_Id`: columns `proteinID`, `idtype2` united with separator '~'.
#> creating sampleName from file_name column
#> setup_analysis: dropped 6 unconfigured columns: average_prot_abundance, sd, mean, N, avg_peptide_abd, Replicate.
#> setup_analysis: added 36 rows with NA response for feature and sample combinations absent from the input.
lfq <- LFQData$new(istar$data, istar$config)
res <- missingness_per_condition(lfq)
stopifnot("ggplot" %in% class(res$figure))
stopifnot(ncol(res$data) >= 5)