R/krsa_extractEndPointMaxExp.R

Defines functions krsa_extractEndPointMaxExp

Documented in krsa_extractEndPointMaxExp

#' Extracts end point data at max exposure (last cycle)
#'
#' This function takes in raw data and chip type and returns end point
#' data at max exposure (last cycle)
#'
#' @param df krsa raw tidy data
#' @param type chip type
#'
#' @return end point data at max exposure df
#'
#' @family helper functions
#'
#'
#' @export
#'
#' @examples
#' TRUE
krsa_extractEndPointMaxExp <- function(df, type = c("STK", "PTK")) {
    df %>%
        dplyr::filter(
            Cycle == max(Cycle),
            ExposureTime == max(ExposureTime)
        ) %>%
        dplyr::select(SampleName, Peptide, Signal, Group)
}
CogDisResLab/KRSA documentation built on Sept. 27, 2024, 2:03 p.m.