network | R Documentation |
computes a haplotype network with haplotype summary result
get_hapNet(hapSummary,
AccINFO = AccINFO,
groupName = groupName,
na.label = "Unknown")
getHapGroup(
hapSummary,
AccINFO = AccINFO,
groupName = groupName,
na.label = na.label
)
hapSummary |
object of |
AccINFO |
data.frame, specified groups of each accession.
Used for pie plot. If missing, pie will not draw in plotHapNet.
Or you can supplied a hap_group mattrix with |
groupName |
the group name used for pie plot,
should be in |
na.label |
the label of |
hapNet class
Mark P.J. van der Loo (2014) \Sexpr[results=rd]{tools:::Rd_expr_doi("10.32614/RJ-2014-011")};
E. Paradis (2010) \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1093/bioinformatics/btp696")}
plotHapNet()
and
hap_summary()
.
data("geneHapR_test")
hapSummary <- hap_summary(hapResult)
# calculate haploNet
hapNet <- get_hapNet(hapSummary,
AccINFO = AccINFO, # accession types
groupName = colnames(AccINFO)[2])
# plot haploNet
plot(hapNet)
# plot haploNet
plotHapNet(hapNet,
size = "freq", # circle size
scale = "log10", # scale circle with 'log10(size + 1)'
cex = 1, # size of hap symbol
col.link = 2, # link colors
link.width = 2, # link widths
show.mutation = 2, # mutation types one of c(0,1,2,3)
legend = FALSE) # legend position
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.