RunCCA: This file contains functions taken directly from the Seurat...

View source: R/seurat_anchor_correction.R

RunCCAR Documentation

This file contains functions taken directly from the Seurat V3 source code, edited to take matrices as input rather than Seurat objects and to be run on only two datasets

Description

Modified from Seurat package

Usage

RunCCA(
  object1,
  object2,
  standardize = FALSE,
  l2.norm = FALSE,
  num.cc = 20,
  setseed = TRUE,
  ...
)

Arguments

object1

a (k features x n cells) matrix

object2

a (k features x m cells) matrix

standardize

Standardize matrices - scales columns to have unit variance and mean 0

num.cc

Number of canonical vectors to calculate

verbose

...

Value

a ((n+m) cells x num.cc features) matrix

References

Stuart et al, bioRxiv 2018

https://github.com/satijalab/seurat/tree/release/3.0 Uses CCA to merge two datasets into a shared space


CamaraLab/STvEA documentation built on April 2, 2024, 6:07 a.m.