Skip to contents

Plot protein and PTM expression across all contrasts in multi-panel layout

Usage

n_to_c_expression_multicontrast(
  combined_site_prot_long,
  FDR_threshold = 0.05,
  fc_threshold = 0,
  impute_flag = "Imputed_Mean_moderated",
  max_plots = NULL,
  include_proteins = NULL
)

Arguments

combined_site_prot_long

data frame with combined site and protein data

FDR_threshold

FDR threshold for filtering significant sites (default 0.05)

fc_threshold

Fold change threshold for filtering (default 0)

impute_flag

Flag for imputed values (default "Imputed_Mean_moderated")

max_plots

Maximum number of plots to generate (default NULL = no limit). If specified, only the first max_plots proteins will be plotted.

include_proteins

Character vector of protein IDs to always include in the output, regardless of max_plots limit (default NULL). These proteins will be added even if they exceed the max_plots limit.

Value

data frame with protein_Id, protein_length, n_contrasts, and multi-panel plot

Examples

# data(combined_site_prot_data)
# result <- n_to_c_expression_multicontrast(combined_site_prot_data,
#   max_plots = 50, include_proteins = c("Q64337"))
# print(result$plot[[1]])  # Display first protein's multi-contrast plot