classCov: Get the covariance of each cluster.

Description Usage Arguments Value Author(s) Examples

View source: R/clusterStats.R

Description

After classifying droplets, we can compute the covariance for each class.

Usage

1
classCov(droplets, classCol = "class")

Arguments

droplets

A data frame of droplets with Ch1.Amplitude and Ch2.Amplitude columns, as well as a class column (see the parameter classCol).

classCol

The column (name or number) from droplets representing the class.

Value

A list of covariance matrices of each cluster.

Author(s)

Anthony Chiu, anthony.chiu@cruk.manchester.ac.uk

Examples

1
2
3
4
5
6
7
8
9
## Get the covariance matrix of the clusters.
aWell<- KRASdata[["E03"]]
aWell$Cluster <- relabelClasses(aWell, classCol="Cluster")
classCov(aWell, classCol="Cluster")

## We repeat the above but with a sample with no "PP" cluster.
aWell <- KRASdata[["H04"]]
aWell$Cluster <- relabelClasses(aWell, classCol="Cluster")
classCov(aWell, classCol="Cluster")

CRUKMI-ComputationalBiology/twoddpcr documentation built on Feb. 14, 2021, 9:18 p.m.