vcfR2hapmap: Convert a vcfR object to hapmap

View source: R/vcfR2hapmap.R

vcfR2hapmapR 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)


knausb/vcfR documentation built on Jan. 14, 2024, 1:56 a.m.