pulldiag: Pull out the diagonal from a distance matrix

View source: R/pulldiag.R

pulldiagR Documentation

Pull out the diagonal from a distance matrix

Description

Pull out the diagonal from a distance matrix calculated by distee() (that is, self-self distances).

Usage

pulldiag(d)

Arguments

d

A distance matrix calculated by distee().

Details

We use the row and column names to identify which entries are self-self.

Value

A vector with the self-self distances.

Author(s)

Karl W Broman, broman@wisc.edu

See Also

omitdiag(), distee(), disteg(), summary.lineupdist(), plot2dist(), plot.lineupdist()

Examples

data(expr1, expr2)



# distance as RMS difference
d <- distee(expr1, expr2)

# pull out the self-self distances
d_selfself <- pulldiag(d)

# samples with smallest self-self correlation
sort(d_selfself)[1:10]


lineup documentation built on July 10, 2022, 5:05 p.m.