Learn R Programming

rMVP (version 0.99.14.1)

MVP.Data.Hapmap2MVP: MVP.Data.Hapmap2MVP: To transform Hapmap data to MVP package Author: Haohao Zhang Build date: Sep 12, 2018

Description

MVP.Data.Hapmap2MVP: To transform Hapmap data to MVP package Author: Haohao Zhang Build date: Sep 12, 2018

Usage

MVP.Data.Hapmap2MVP(hapmap_file, out = "mvp", type.geno = "char",
  verbose = TRUE)

Arguments

hapmap_file

Genotype in Hapmap format

out

the name of output file

type.geno

the type of genotype elements

verbose

whether to print the reminder

Value

number of individuals and markers. Output files: genotype.desc, genotype.bin: genotype file in bigmemory format phenotype.phe: ordered phenotype file, same taxa order with genotype file map.map: SNP information

Examples

Run this code
# NOT RUN {
hapmapPath <- system.file("extdata", "03_hapmap", "mvp.diploid.hmp.txt", package = "rMVP")
MVP.Data.Hapmap2MVP(hapmapPath, "rMVP.test.hmp")
# }

Run the code above in your browser using DataLab