fast_stringDist: Computes a distance matrix between sequences by using...

Description Usage Arguments Details

View source: R/distances.R

Description

The first sequence in the input data is chosen and the pairwise distances between all sequences and this sequence is computed. The sequence most distant from the first sequence is then chosen as the next anchor. The process continues by selecting the sequence furthest from all previous anchors as the next anchor.

Usage

1
fast_stringDist(x, anchors = 3)

Arguments

x

The input sequences

anchors

The number of sequences to use as anchors

Details

Once all the distances to the chosen number of anchors have been computed, a distance matrix is constructed using the distances between the sequences and the anchors. For very large numbers of sequences (>500) this realizes a big speedup.


philliplab/MotifBinner documentation built on Sept. 2, 2020, 11:41 a.m.