An S4 class representing the complete furcation pattern around a focal marker.
a list containing for each allele an object of
the name/identifier of the focal marker.
the chromosomal position of the focal marker.
the range of marker positions.
the number of haplotypes in the sample.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
# copy example files into working directory make.example.files() # read first example file hh <- data2haplohh(hap_file = "example1.hap", map_file = "example1.map", allele_coding = "01") # remove example files remove.example.files() # calculate furcation structure around marker "rs6" f <- calc_furcation(hh, mrk = "rs6") # extract left side tree of ancestral allele (which is coded by '0') f[['0']]@left # the tree consists of seven nodes, '1' being the root node # nodes 2 and 3 have the root node as parent, etc. # the first chromosome is attached as a label node to node 7, etc. # For comparison, a plot of the complete furcation structure: plot(f)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.