calcMD: Calculating the Minimum Distance matrix

Description Usage Arguments Value Examples

View source: R/calcMD.R

Description

This function will return a matrix of minimum distances where ecah column is a family, and each row is a bin.

Usage

1
calcMD(mCounts, metaData)

Arguments

mCounts

A matrix of normalized coverage output by normalizedCounts().

metaData

A table in the format of the output of metaData().

Value

A data.frame of minimum distances. Each column is a trio, while each row is an entry in bins

Examples

1
2
3
4
5
load(system.file("extdata", 'bins.RData', package = "MDTS"))
load(system.file("extdata", 'counts.RData', package = "MDTS"))
load(system.file("extdata", 'pD.RData', package = "MDTS"))
mCounts <- normalizeCounts(counts, bins)
md <- calcMD(mCounts, pD)

MDTS documentation built on Nov. 1, 2018, 2:24 a.m.