View source: R/cv_estimation_tag_functions.R
tag_subtract | R Documentation |
\\_End_Function_\\ #
tag_subtract( dataC_mfi, tag_antigens, mean_best_CV_var, tag_file, batch_vars, sampleID_var = "sampleID", antigen_var = "antigen" )
dataC_mfi |
A dataframe |
tag_antigens |
A character vector with the names of proteins or antigens used as TAG. |
mean_best_CV_var |
A character string containing the identifier of the variable with the MFI values. |
tag_file |
A data frame with variables |
batch_vars |
A list of characters identifying variables in dataC_mfi for indicating batch. |
sampleID_var |
A character string containing the name of the sample identifier variable. Default set to 'sampleID' |
antigen_var |
A character string containing the name of the features/protein variable. Default to 'antigen' |
Subtract the purification TAG data
A data frame of TAG values subtracted
tag_file <- readr::read_csv(system.file("extdata", "TAG_antigens.csv", package="protGear")) tag_antigens <- c("CD4TAG", "GST", "MBP") batch_vars <- list(machine = "m1", day = "0520") dataC <- readr::read_csv(system.file("extdata", "dataC.csv", package="protGear")) ## this file has 3 lab replicates and the default names dataCV <- cv_estimation(dataC ,lab_replicates=3) dataCV_best2 <- best_CV_estimation(dataCV,slide_id = "iden", lab_replicates = 3, cv_cut_off = 20) tag_subtract(dataCV_best2,tag_antigens=tag_antigens, mean_best_CV_var="mean_best_CV", tag_file = tag_file,antigen_var = "antigen", batch_vars = batch_vars)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.