makeDist: Title Create a Jaccard or overlap dissimilarity matrix from...

View source: R/calcPairwiseOverlaps.R

makeDistR Documentation

Title Create a Jaccard or overlap dissimilarity matrix from the output of calcPairwiseOverlaps

Description

Title Create a Jaccard or overlap dissimilarity matrix from the output of calcPairwiseOverlaps

Usage

makeDist(overlaps, use = "jaccard", names)

Arguments

overlaps

A data.frame output from the calcPairwiseOverlaps function

use

Either "overlap" or "jaccard"

names

A list of signature names

Value

a Dist object of (1 - overlap) or (1 - jaccard)

Examples

testlist <- list(a = 1:3, b = 3, c = 3:4)
(all <- calcPairwiseOverlaps(testlist))
sigs <- names(testlist)
makeDist(all, "jaccard", sigs)
makeDist(all, "overlap", sigs)

waldronlab/BugSigDBStats documentation built on Oct. 15, 2024, 5:16 p.m.