get_mahalanobis_distance_from_beads: Calculates the Mahalanobis distance of each event from the...

View source: R/normalize_cytof.R

get_mahalanobis_distance_from_beadsR Documentation

Calculates the Mahalanobis distance of each event from the centroid of the beads population

Description

Calculates the Mahalanobis distance of each event from the centroid of the beads population

Usage

get_mahalanobis_distance_from_beads(m, beads.events, beads.cols.names)

Arguments

m

The untransformed matrix of data. Must contain a column called beadEvent which indicates when the corresponding event is a bead (1) or not (0)

beads.events

A vector of length nrow(m) indicating which rows of m represent beads events

beads.cols.names

The names of the bead columns

Value

A vector of length nrow(m) containing the sqrt of the Mahalanobis distance of each of m from the centroid of the beads population


ParkerICI/premessa documentation built on Sept. 16, 2022, 3:06 p.m.