Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

qc_ids

Check number of precursor, peptide or protein IDs


Description

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.

Usage

qc_ids(
  data,
  sample,
  grouping,
  intensity,
  remove_na_intensities = TRUE,
  condition = NULL,
  title = "ID count per sample",
  plot = TRUE,
  interactive = FALSE
)

Arguments

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 = FALSE, this argument is not required.

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).

Value

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.

Examples

## 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)

protti

Bottom-Up Proteomics and LiP-MS Quality Control and Data Analysis Tools

v0.1.1
MIT + file LICENSE
Authors
Jan-Philipp Quast [aut, cre], Dina Schuster [aut], ETH Zurich [cph, fnd]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.