Compute distances for binary distances

BinaryDist(M, method = "Jaccard")

Arguments

M

the binary matrix, Each row is a cell, each column is a variant, generated by Make_matrix

method

distance method, choose from Jaccard, Dice, 3WJaccard, Simpson, Kulczynski2, Ochiai, Hamming

Value

dist object

Examples

d.Jaccard<-BinaryDist(object@Cts.Mtx.bi,method="Jaccard")
#> Loading required package: Matrix
#> Error in h(simpleError(msg, call)): error in evaluating the argument 'x' in selecting a method for function 'rowSums': object 'object' not found