sim_new creates an object of class matric_sim.

sim_new(x, row_metadata, metric_metadata)

Arguments

x

data.frame with similarity matrix.

row_metadata

tbl with row metadata.

metric_metadata

list with metric information

Value

Object of class matric_sim.

Details

matric_sim is just a tibble with two attributes and at least three columns.

Columns:

  • id1 and id2: integers, indicating row ids.

  • sim: double, indicating similarity between the rows.

Attributes:

  • row_metadata: data.frame of row annotations, with id column.

  • metric_metadata: information about the similarity metric.

This is somewhat similar to Biobase::AnnotatedDataFrame.