get_distance_matrix: Calculate the distance matrix

Description Usage Arguments Value Note Author(s) See Also Examples

Description

Calculate the distance matrix

Usage

1
get_distance_matrix(profiles, method)

Arguments

profiles

profile data for distance calculating

method

distance calculation method ("euclidean", "maximum", "manhattan", "canberra", "binary", "distance_correlation", "mutual_information" or "pearson" for binary data; "distance_correlation" or "mutual_information" for non-binary data)

Value

A distance matrix for input phylogenetic profiles.

Note

Documented by Vinh Tran (tran@bio.uni-frankfurt.de)

Author(s)

Carla Mölbert (carla.moelbert@gmx.de)

See Also

get_data_clustering

Examples

1
2
3
4
5
6
7
data("full_processed_profile_large", package="phyloprofile")
data <- full_processed_profile_large
profile_type <- "binary"
profiles <- get_data_clustering(
    data, profile_type, var1_aggregate_by, var2_aggregate_by)
method <- "mutual_information"
get_distance_matrix(profiles, method)

trvinh/test documentation built on May 9, 2019, 2:26 a.m.