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)


vcfR documentation built on May 29, 2024, 10:57 a.m.