accuracy {cyanoFilter}R Documentation

samples two rows in a matrix and check if the samples are similar or different based on their cluster labels

Description

This function

Usage

accuracy(mat, mono_clust, bi_clust, nrun = 10000)

Arguments

mat

matrix to be sampled from

mono_clust

monoculture cluster label

bi_clust

biculture cluster label

nrun

number of times the resampling should be carried out. Defaults to 10000

Value

a vector of integer values

Examples

x <- matrix(NA, nrow = 100, ncol = 3)
xx <- apply(x, 2, rnorm, 100)
xx <- cbind(xx, Mono = rep(1:2, each = 50),
            Bi = rep(1:2, times = 50))
accuracy(xx, "Mono", "Bi", nrun = 5000)

[Package cyanoFilter version 1.1.1 Index]