itemsModel: Predictive models computation for the number of cells in...

itemsModelR Documentation

Predictive models computation for the number of cells in colonies

Description

Compute and save specific predictive model from manual countings for the estimation of number of cells in colonies.

Usage

itemsModel(dat, countFile, method = "mda")

Arguments

dat

matrix or data.frame of raw data (points by line).

countFile

character vector specifying the path and the name of the file containing manual countings.

method

character vector specifying the name of method tu use for the building of predictive models. Must be 'lm', 'lda' or 'mda' (default).

Details

itemsModel computes and saves specific predictive model from manual countings for the estimation of number of cells in colonies

Value

RDS file containing the predictive model.

See Also

computeItemsSample, countItems

Examples


dat <- rbind(matrix(rnorm(100, mean = 0, sd = 0.3), ncol = 2), 
             matrix(rnorm(100, mean = 2, sd = 0.3), ncol = 2), 
             matrix(rnorm(100, mean = 4, sd = 0.3), ncol = 2))
tf <- tempfile()
write.table(dat, tf, sep=",", dec=".")
x <- importSample(file.features=tf)

x <- computeUnSupervised(x, K=0, pca=TRUE, echo=TRUE)

countFile <- countItemsSampleGUI(x)
if (file.exists(countFile))
     itemsModel(x$features$initial$x, countFile)


RclusTool documentation built on Aug. 29, 2022, 9:07 a.m.