classCov {twoddpcr} | R Documentation |
After classifying droplets, we can compute the covariance for each class.
classCov(droplets, classCol = "class")
droplets |
A data frame of droplets with |
classCol |
The column (name or number) from |
A list of covariance matrices of each cluster.
Anthony Chiu, anthony.chiu@cruk.manchester.ac.uk
## 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")