hap2hmp {geneHapR} | R Documentation |
Convert hapResult object to hapmap (hmp) format, for interact with other packages
Description
Convert hapResult object to hapmap (hmp) format, for interact with other packages
Usage
hap2hmp(hap)
hmp2hap(hmp, hapPrefix = "H", hetero_remove = TRUE, na_drop = TRUE, ...)
Arguments
hap |
object of "hapResult" class |
hmp |
object of "data.frame" class in hapmap format |
hapPrefix |
prefix of haplotype names |
hetero_remove |
whether remove accessions contains hyb-sites, Character not A T C G |
na_drop |
whether drop accessions contains missing data ("N", "NA", ".") |
... |
Arguments passed on to
|
Value
a data.frame in hapmap format.
Examples
data("geneHapR_test")
hmp <- hap2hmp(hapResult)
hap <- hmp2hap(hmp)
[Package geneHapR version 1.2.4 Index]