Learn R Programming

Canopy (version 1.3.0)

getZ: To get SNA genotyping matrix \(Z\)

Description

To get SNA genotyping matrix \(Z\) from location of SNAs on the tree. Used in canopy.sample.

Usage

getZ(tree, sna.name)

Arguments

tree

input tree

sna.name

vector of SNA names

Value

Genotyping matrix \(Z\).

Examples

Run this code
# NOT RUN {
data(MDA231_tree)
data(MDA231)
sna.name = rownames(MDA231$R)
getZ(MDA231_tree, sna.name)
# }

Run the code above in your browser using DataLab