This function can convert a raw score matrix returned by
nblast
into a square distance matrix or dist
object. It can
be used with file-backed matrices as well as regular R matrices resident in
memory.
Usage
sub_dist_mat(
neuron_names,
scoremat = NULL,
form = c("matrix", "dist"),
maxneurons = NA
)
Value
return An object of class matrix or dist (as determined by the form argument), corresponding to a subset of the distance matrix
Details
Note that if neuron_names
is missing then the rownames of
scoremat
will be used i.e. every neuron in scoremat
will be
used.
See also
Other scoremats:
nhclust()