Learn R Programming

simer (version 1.0.0)

simer.Data.MVP2Bfile: simer.Data.MVP2Bfile: To transform MVP data to binary format

Description

transforming MVP data to binary format.

Usage

simer.Data.MVP2Bfile(
  bigmat,
  map,
  pheno = NULL,
  out = "simer",
  threads = 1,
  verbose = TRUE
)

Value

NULL Output files: .bed, .bim, .fam

Arguments

bigmat

Genotype in bigmatrix format (0,1,2).

map

the map file.

pheno

the phenotype file.

out

the name of output file.

threads

the number of threads used, if NULL, (logical core number - 1) is automatically used.

verbose

whether to print the reminder.

Author

Haohao Zhang and Dong Yin

Details

Build date: Sep 12, 2018 Last update: Jan 29, 2025

Examples

Run this code
# \donttest{
library(bigmemory)

# Generate bigmat and map
bigmat <- as.big.matrix(matrix(1:6, 3, 2))
map <- generate.map(pop.marker = 3)

# Data converting
simer.Data.MVP2Bfile(bigmat, map, out=tempfile("outfile"))
# }

Run the code above in your browser using DataLab