Description Usage Arguments Value
Runs a canonical correlation analysis using a diagonal implementation of CCA.
For details about stored CCA calculation parameters, see
PrintCCAParams
.
1 2 |
object |
Seurat object |
object2 |
Optional second object. If object2 is passed, object1 will be considered as group1 and object2 as group2. |
group1 |
First set of cells (or IDs) for CCA |
group2 |
Second set of cells (or IDs) for CCA |
group.by |
Factor to group by (column vector stored in object@meta.data) |
num.cc |
Number of canonical vectors to calculate |
genes.use |
Set of genes to use in CCA. Default is object@var.genes. If two objects are given, the default is the union of both variable gene sets that are also present in both objects. |
scale.data |
Use the scaled data from the object |
rescale.groups |
Rescale each set of cells independently |
Returns Seurat object with the CCA stored in the @dr$cca slot. If one object is passed, the same object is returned. If two are passed, a combined object is returned.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.