get_mahalanobis_distance | R Documentation |
Calculates the squared Mahalanobis distance from the centroid of the barcoded sample
get_mahalanobis_distance(m, bc.res, sep.threshold)
m |
The data matrix |
bc.res |
The debarcoding results |
sep.threshold |
The minimum separation in the intensity of the barcoding channels. Barcode assignments are performed based on this threshold. Then the function calculates the Mahalanobis distance between each event and the centroid of the debarcoded sample, as assigned using this threshold. |
Returns a vector of squared Mahalanobis distances, as calculated by stats::mahalanobis
. The distance
values are capped at 30. If the distance calculation fails the corresponding vector values will be NA
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.