graph_signal_noise_ratio: This function takes a list of low dimensional embedding data,...

Description Usage Arguments Value

View source: R/mlg.R

Description

This function takes a list of low dimensional embedding data, and true cell type labels as input, and compute the graph signal to noise ratio of the SNN graphs constructed with each low dimension embeddding and the MLG graph.

Usage

1
2
3
4
5
6
graph_signal_noise_ratio(
  factor.list,
  knn.param = 20,
  prune.param = 1/5,
  cell_label
)

Arguments

factor.list

A list that contains several low dimensional embedding data.

knn.param

The number of neighbors used to construct k-nearest-neighbot graph.

prune.param

The prune parameter for SNN graph. There is an edge between cell i and j in the SNN graph, if the number of common neighbors between i and j exceeds the product of knn.param and knn.param.

cell_label

True cell type label.

Value

A vector of signal to noise ratio, labeled by graph name.


shanlu01/mlg documentation built on Oct. 20, 2020, 6:36 a.m.