convert_to_dissimilarity_matrix: Convert pairwise dissimilarity data.frame to a dissimilarity...

Description Usage Arguments Value

View source: R/scMeth_functions.R

Description

Convert pairwise dissimilarity data.frame to a dissimilarity matrix

Usage

1
2
convert_to_dissimilarity_matrix(master_diff,
  measure = "pairwise_dissimilarity", diag = NA, sample_subset = NULL)

Arguments

master_diff

The data.frame containing pairwise dissimilarites. Typically the output of create_pairwise_master. Required.

measure

The name of the column to use as the values for the pairwise dissimilarity matrix. Defaults to the pairwise_dissimilarity. Can be changed if user wants another measure (e.g. correlation, etc).

diag

The value to put in the diagonal. Defaults to NA.

sample_subset

A character vector of sample names to subset. Optional.

Value

A data.matrix representing the pairwise dissimilarites between every cell


hui-tony-zk/PDclust documentation built on Aug. 7, 2018, 7:03 p.m.