Learn R Programming

SWATH2stats (version 1.2.3)

assess_decoy_rate: assess_decoy_rate: Assess decoy rate

Description

This function counts the number of decoy peptides.

Usage

assess_decoy_rate(data)

Arguments

data
A data frame that contains at least a column named "FullPeptideName" and "decoy".

Value

Prints the decoy rate.

Details

A printout is generated to indicate the number of non-decoy, decoy peptides and the rate of decoy vs non-decoy peptides. Unique peptides are counted, so a precursor with different charge states is counted as one peptide. In the column "decoy" the values need to be 1,0 or TRUE and FALSE.

Examples

Run this code
data("OpenSWATH_data", package="SWATH2stats")
data <- OpenSWATH_data
assess_decoy_rate(data)

Run the code above in your browser using DataLab