constraintMatrix: constraintMatrix

Description Usage Arguments Value Examples

View source: R/utils.R

Description

constraint FCS data by a provid cutoff

Usage

1
constraintMatrix(x, cutoff = 0.99, markers = NULL, method = "euclidean")

Arguments

x

matrix

cutoff

numeric. Cutoff of the constraint value

markers

character. Markers used in the calculation of constraint model.

method

character. the distance measure to be used. This must be one of "euclidean", "maximum", "manhattan", "canberra", "binary" or "minkowski".

Value

a matrix

Examples

1
2
3
4
5
6
mat <- matrix(runif(10000), nrow = 1000, ncol = 10)
colnames(mat) <- LETTERS[ seq_len(10)]
dim(mat)

mat <- constraintMatrix(mat)
dim(mat)

JhuangLab/CytoTree documentation built on Nov. 16, 2020, 7:23 a.m.