FindWeights: Calculates weights of the k nearest anchors for each cell in...

View source: R/seurat_anchor_correction.R

FindWeightsR Documentation

Calculates weights of the k nearest anchors for each cell in the query dataset

Description

Calculates weights of the k nearest anchors for each cell in the query dataset

Usage

FindWeights(
  neighbors,
  anchors,
  query_mat,
  integration.matrix,
  k.weight = 300,
  sd.weight = 1,
  eps = 0,
  verbose = TRUE
)

Arguments

neighbors

list of neighbors in CCA space as output by FindNN

anchors

list of anchors as output by FindAnchorPairs or FilterAnchors

query_mat

a (cells x features) matrix for the query dataset (protein or mRNA)

integration.matrix

the output of FindIntegrationMatrix

sd.weight

standard deviation of the Gaussian kernel

eps

Error bound on the neighbor finding algorithm (from RANN)

verbose

...

k

number of nearest anchors to use in correction


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