Check number of precursor, peptide or protein IDs
Returns a plot or table of the number of IDs for each sample. The default settings remove grouping variables without quantitative information (intensity is NA). These will not be counted as IDs.
qc_ids( data, sample, grouping, intensity, remove_na_intensities = TRUE, condition = NULL, title = "ID count per sample", plot = TRUE, interactive = FALSE )
data |
a data frame containing at least sample names and precursor/peptide/protein IDs. |
sample |
the column in the data frame specifying the sample name. |
grouping |
the column in the data frame containing either precursor, peptide or protein identifiers. |
intensity |
the column in the data frame containing raw or log2 transformed intensities. If |
remove_na_intensities |
logical specifying if sample/grouping combinations with intensities that are NA (not quantified IDs) should be dropped from the data frame. Default is TRUE since we are usually interested in the number of quantifiable IDs. |
condition |
optional column in the data frame specifying the condition of the sample (e.g. LiP_treated, LiP_untreated), if column is provided, the bars in the plot will be coloured according to the condition. |
title |
optional argument specifying the plot title (default is "ID count per sample"). |
plot |
logical specifying whether the output of the function should be plotted (default is TRUE). |
interactive |
logical specifying whether the plot should be interactive (default is FALSE). |
A bar plot with the height corresponding to the number of IDs, each bar represents one sample
(if plot = TRUE
). If plot = FALSE
a table with ID counts is returned.
## Not run: qc_ids( data, sample = r_file_name, grouping = eg_precursor_id, intensity = fg_quantity, condition = r_condition, title = "Number of peptide IDs per sample" ) ## End(Not run)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.