generates peptide level plots for all Proteins

plot_hierarchies_boxplot_df(
  pdata,
  config,
  hierarchy = config$table$hierarchy_keys_depth(),
  facet_grid_on = NULL
)

Arguments

pdata

data.frame

config

AnalysisConfiguration

facet_grid_on

default NULL

hiearchy

e.g. protein_Id default hierarchy_keys_depth

Examples



 istar <- sim_lfq_data_peptide_config()
#> creating sampleName from fileName column
#> Warning: no nr_children column specified in the data, adding column nr_children and setting to 1.
#> completing cases
 config <- istar$config
 analysis <- istar$data
 analysis <- analysis |>
   dplyr::filter(protein_Id %in% sample(protein_Id, 2))

 res <- plot_hierarchies_boxplot_df(analysis,config)
 res$boxplot[[1]]
#> Warning: Removed 8 rows containing non-finite outside the scale range
#> (`stat_boxplot()`).
#> Warning: Removed 8 rows containing missing values or values outside the scale range
#> (`position_quasirandom()`).

 res <- plot_hierarchies_boxplot_df(analysis,config,config$table$hierarchy_keys()[1])
 res$boxplot[[1]]
#> Warning: Removed 8 rows containing non-finite outside the scale range
#> (`stat_boxplot()`).
#> Warning: Removed 8 rows containing missing values or values outside the scale range
#> (`position_quasirandom()`).

 res <- plot_hierarchies_boxplot_df(analysis,config,
                                    config$table$hierarchy_keys()[1],
                                    facet_grid_on = config$table$hierarchy_keys()[2])
 res$boxplot[[1]]
#> Warning: Removed 8 rows containing non-finite outside the scale range
#> (`stat_boxplot()`).
#> Warning: Removed 8 rows containing missing values or values outside the scale range
#> (`position_quasirandom()`).

 res$boxplot[[2]]


 iostar <- sim_lfq_data_protein_config()
#> creating sampleName from fileName column
#> completing cases
 iostar$data <- iostar$data |>
   dplyr::filter(protein_Id %in% sample(protein_Id, 4))
 unique(iostar$data$protein_Id)
#> [1] "BEJI92~5282" "CGzoYe~2147" "SGIVBl~5782"

 res <- plot_hierarchies_boxplot_df(iostar$data,iostar$config)
 res$boxplot[[1]]
#> Warning: Removed 1 row containing non-finite outside the scale range (`stat_boxplot()`).
#> Warning: Removed 1 row containing missing values or values outside the scale range
#> (`position_quasirandom()`).

 res <- plot_hierarchies_boxplot_df(iostar$data,iostar$config,
                                    iostar$config$table$hierarchy_keys()[1])