ref_dist_samplewise: Average samplewise topological distance to a group of nodes

View source: R/evaluation.R

ref_dist_samplewiseR Documentation

Average samplewise topological distance to a group of nodes

Description

This function calculated the average topological distance of samples to a geoup of samples.

Usage

ref_dist_samplewise(obj_mapper, groups_ind, ref)

Arguments

obj_mapper

An object of class TDAmapper.

groups_ind

A vector of group names each of the samples belongs to.

ref

A string object specifying the name of the reference group.

Value

A vector of the average distance to the selected group of samples. Distance of samples in the outlier nodes will be set to NA. Length of the vector will be the number of samples.


TianshuFeng/SemiMapper documentation built on Sept. 16, 2022, 10:26 p.m.