R/krsa_extractEndPoint.R

Defines functions krsa_extractEndPoint

Documented in krsa_extractEndPoint

#' Extracts end point data (last cycle)
#'
#' This function takes in raw data and chip type and returns
#' end point data (last cycle)
#'
#' @param df krsa raw tidy data
#' @param type chip type
#'
#' @return end point signals df
#'
#' @family helper functions
#'
#'
#' @export
#'
#' @examples
#' TRUE
krsa_extractEndPoint <- function(df, type = c("STK", "PTK")) {
    df %>%
        dplyr::filter(
            Cycle == max(Cycle)
        ) %>%
        dplyr::select(SampleName, Peptide, ExposureTime, Signal, Barcode, Group)
}
CogDisResLab/KRSA documentation built on Oct. 25, 2024, 9:17 a.m.