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

qc_contaminants

Percentage of contaminants per sample


Description

Calculates the percentage of contaminating proteins as the share of total intensity

Usage

qc_contaminants(
  data,
  sample,
  protein,
  is_contaminant,
  intensity,
  n_contaminants = 5,
  plot = TRUE,
  interactive = FALSE
)

Arguments

data

a data frame containing at least the input variables.

sample

the name of the column containing the sample names.

protein

the name of the column containing protein IDs or protein names.

is_contaminant

the name of the column containing a logical indicating if the protein is a contaminant.

intensity

the name of the column containing the corresponding raw or untransformed normalised intensity values.

n_contaminants

numeric, indicating how many contaminants should be displayed individually. The rest is combined to a group called "other". The default is 5.

plot

logical, if TRUE a plot is returned. If FALSE a table is returned.

interactive

logical, if TRUE the plot is interactive using plotly.

Value

A bar plot that displays the percentage of contaminating proteins over all samples. If plot = FALSE a data frame is returned.

Examples

## Not run: 
qc_contaminants(
  data,
  sample = sample,
  protein = leading_razor_protein,
  is_contaminant = potential_contaminant,
  intensity = intensity
)

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