View source: R/vis_hapVisualization.R
| hap_summary | R Documentation |
A function used for summarize hapResult to visualization and calculation.
hap_summary(hap,
hapPrefix = "H",
file = file)
hap |
object of hapResult class, generated by |
hapPrefix |
prefix of hap names, default as "H" |
file |
file path where to save the hap summary result. If missing, nothing will be saved to disk. |
It is suggested to use the result of vcf2hap() or seqs2hap()
as input directly.
However the user can import previously hap result from local file
with import_hap()
hapSummary, first four rows are fixed to meta information: CHR, POS, INFO, ALLELE Hap names were placed in first column, Accessions and freqs were placed at the last two columns.
If the user have changed the default hapPrefix in vcf2hap() or seqs2hap(),
then the parameter hapPrefix is needed.
Furthermore, a multi-letter prefix of hap names is possible.
data("geneHapR_test")
hapSummary <- hap_summary(hapResult, hapPrefix = "H")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.