kmeansCluster: kMeans cluster an intensity value

Description Usage Arguments Value

View source: R/derivedParameter_functions.R

Description

Returns cluster assignments for intensity values based on a control ligand

Usage

1
kmeansCluster(x, value, ctrlLigand = "HighSerum")

Arguments

x

A dataframe or data.table

value

A character vector of one column name in x that conatins non-negative intensity values

ctrlLigand

A character vector of one Ligand name in x

Value

Cluster assignments of length nrow(x)for the value column based on a kmeans threshold calculated from the ligand values. The values are 1 for intensities above the threshold and 0 for values equal to or less than the trheshold.


kdaily/MEMA documentation built on May 20, 2019, 8:28 a.m.