distCor: Correlation based distance between SNPs

Description Usage Arguments Details See Also Examples

View source: R/snpCluster.R

Description

This function computes a distance matrix. The distance is estimated as one minus the absolute value of the correlation coefficient 1 - abs(cor).

Usage

1
distCor(snp)

Arguments

snp

an object of class snpMatrix.

Details

See dist for details about the output object.

See Also

dist

Examples

1
2
3
4
5
# file containing example data for SNP data
gfile <- system.file("extdata/snpdata.csv", package = "qtcat")
snp <- read.snpData(gfile, sep = ",")

dist <- distCor(snp[, 1:10])

QTCAT/qtcat documentation built on April 20, 2021, 11:20 p.m.