tpptrFitSplines {TPP} | R Documentation |
Fit natural splines to all proteins in a dataset.
tpptrFitSplines( data, factorsH1, factorsH0 = character(0), splineDF = 3:7, computeAUC = NULL, returnModels = TRUE, nCores = "max" )
data |
the data to be fitted |
factorsH1 |
which factors should be included in the alternative model? |
factorsH0 |
which factors should be included in the null model? |
splineDF |
degrees of freedom for natural spline fitting. |
computeAUC |
DEPRECATED |
returnModels |
should the linear models be returned in a column of the result table? Activation increases memory requirements. |
nCores |
either a numerical value given the desired number of CPUs, or 'max' to automatically assign the maximum possible number (default). Argument |
A table containing the fitted models per protein
data(hdacTR_smallExample) tpptrData <- tpptrImport(configTable = hdacTR_config, data = hdacTR_data) normResults <- tpptrNormalize(data = tpptrData, normReqs = tpptrDefaultNormReqs()) normData_eSets <- normResults$normData normData_longTable <- tpptrTidyUpESets(normData_eSets) hdacSubset <- subset(normData_longTable, grepl("HDAC", uniqueID)) hdacSplineFits <- tpptrFitSplines(data = hdacSubset, factorsH1 = c("condition"), nCores = 1)