dmap.check: Reorders a distance map by a new marker order.

Description Usage Arguments Details Value Examples

Description

Reorders a distance map by a new marker order.

Usage

1
dmap.check(distmap, newrank)

Arguments

distmap

A symmetric matrix of pairwise inter-marker distances.

newrank

A vector of scalars giving the new rank of each marker, markers should appear in the same order as in the distmap.

Details

The rows and columns in distmap are reordered such that if entry i in newrank has value j then row j and column j in the new matrix are row i and column i from distmap.

Value

Matrix of pairwise inter-marker distances.

Examples

1
2
3
4
s<-matrix(1:25,nrow=5)
s<-0.5*(s+t(s))
rank<-c(1,3,4,2,5)
dmap.check(s,rank)

MDSMap documentation built on May 1, 2019, 6:51 p.m.