vcfR2hapmap {vcfR} | R Documentation |
Convert a vcfR object to hapmap
Description
Converts a vcfR object to hapmap
Usage
vcfR2hapmap(vcf)
Arguments
vcf |
a vcfR object. |
Details
Converts a vcfR object to a hapmap format.
Value
a data.frame that can be used as an input for GAPIT.
Author(s)
Brian J. Knaus
Examples
data(vcfR_test)
myHapMap <- vcfR2hapmap(vcfR_test)
class(myHapMap)
## Not run:
# Example of how to create a (GAPIT compliant) HapMap file.
write.table(myHapMap,
file = "myHapMap.hmp.txt",
sep = "\t",
row.names = FALSE,
col.names = FALSE)
## End(Not run)
[Package vcfR version 1.15.0 Index]