traittree: Clustering strains base on quantitative trait data

Description Usage Arguments Details Value Author(s) Examples

View source: R/traittree.R

Description

Calculates p-values for hierarchical clustering via multiscale bootstrap resampling.

Usage

1
traittree(traitdata, nboot = 1000)

Arguments

traitdata

A matrix of quantitative trait data

nboot

The number of bootstrap replications. The default is 1000.

Details

Hierarchical clustering is done for given data and p-values are computed for each of the clusters.

Value

An object of dendrgram class

Author(s)

Xingyao Chen

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
set.seed(1234)  #simulate quantitative trait data
x <- rnorm(n=(16*12), mean=10, sd=30)
trait=matrix(x,16,12)
rname=paste("trait",1:16,sep="")
cname=paste("strain", 1:12, sep="")
rownames(trait)=rname
colnames(trait)=cname

traitdend=traittree(traitdata=trait, nboot=10)
traitdend
plot(traitdend)

16xchen/Biomy documentation built on May 28, 2017, 6:58 p.m.