define_kernel_matrix {scAlign} | R Documentation

## define kernel matrix

### Description

Adds the defined kernel to the operation graph for high dimensional pairwise data similarity

### Usage

    define_kernel_matrix(
      method,
      data = NULL,
      labels = NULL,
      data_shape,
      perplexity = NULL,
      diag = "zero"
    )

### Arguments

`method` | Kernel to compute pairwise cell similarity
`data` | cell x feature data matrix
`labels` | cell x 1 annotation (label) vector
`data_shape` | number of features for data
`perplexity` | neighborhood parameter for gaussian kernel
`diag` | indicator for self similarity

### Value

Tensorflow op

[Package scAlign version 1.8.0 Index]