computeItemsSample | R Documentation |
Apply a specific predictive model for counting of number of cells in colonies for each cluster.
computeItemsSample(data.sample, method, cluster, modelFile = NULL)
data.sample |
list containing features, profiles and clustering results. |
method |
character vector specifying the name of the clustering result to use. |
cluster |
character vector specifying the name of the cluster to consider for the application of the specific model. |
modelFile |
character vector specifying the path and the name of the RData model file. |
computeItemsSample applies a specific predictive model for counting of number of cells in colonies for each cluster
data.sample list containing features, profiles and clustering results with the number of cells for each particle.
itemsModel
, countItems
dat <- rbind(matrix(rnorm(100, mean = 2, sd = 0.3), ncol = 2),
matrix(rnorm(100, mean = 4, sd = 0.3), ncol = 2),
matrix(rnorm(100, mean = 6, sd = 0.3), ncol = 2))
colnames(dat) <- c("x","y")
tf <- tempfile()
write.table(dat, tf, sep=",", dec=".")
x <- importSample(file.features=tf)
x <- computeUnSupervised(x, K=3, method.name="K-means")
x <- computeItemsSample(x, method="K-means", cluster="Cluster 1", modelFile=NULL)# to be fixed !
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.