#' Reading MASIC Results. Generic.
#'
#' Reading MASIC output from a single directory
#'
#' @param path_to_MASIC_results (path string) to directory with MASIC results for all datasets
#' @param interference_score (logical) read interference score. Default is FALSE.
#' @return (data.frame) with reporter ion intensities and other metrics
#' @importFrom dplyr inner_join
#' @examples
#' path_to_MASIC_results <- system.file("extdata/global/masic_output", package = "PlexedPiperTestData")
#' x <- read_masic_data(path_to_MASIC_results, interference_score=TRUE)
#' head(x)
#'
#' @export
read_masic_data <- function(path_to_MASIC_results, interference_score=FALSE){
out <- collate_files(path_to_MASIC_results, "_ReporterIons.txt")
if(interference_score){
extra <- collate_files(path_to_MASIC_results, "_SICstats.txt")
out <- inner_join(out, extra,
by=c("Dataset", "ScanNumber" = "FragScanNumber"))
}
return(out)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.