This functions counts the number of different peakgroups, peptides and proteins in different injections.
count_analytes(
data,
column_levels = c("transition_group_id", "FullPeptideName", "ProteinName"),
column_by = "run_id",
rm_decoy = TRUE
)
A data frame containing SWATH data.
Columns in which the number of unique identifiers should be counted.
Column for which the different identifiers should be counted for, e.g. for the different injections.
Option to not remove decoy before counting.
Returns a data frame with the count of the different identifiers per e.g. injection.
{
data("OpenSWATH_data", package="SWATH2stats")
data("Study_design", package="SWATH2stats")
data <- sample_annotation(OpenSWATH_data, Study_design)
counts <- count_analytes(data)
}