GetTransferMatrix.internal: Get knn in to_dataset for each cell in from_dataset based on...

View source: R/mapping.R

GetTransferMatrix.internalR Documentation

Get knn in to_dataset for each cell in from_dataset based on the corrected data matrix from AnchorCorrection Takes matrices and data frames instead of STvEA.data class

Description

Get knn in to_dataset for each cell in from_dataset based on the corrected data matrix from AnchorCorrection Takes matrices and data frames instead of STvEA.data class

Usage

GetTransferMatrix.internal(
  from_dataset,
  to_dataset,
  k = floor(nrow(to_dataset) * 0.002),
  c = 0.1
)

Arguments

from_dataset

a (cell x feature) matrix or dataframe

to_dataset

a (cell x feature) matrix or dataframe

k

number of nearest neighbors to find

c

constant controls the width of the Gaussian kernel


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