Learn R Programming

simer (version 1.0.0)

simer.Data.Bfile2MVP: simer.Data.Bfile2MVP: To transform plink binary data to MVP package

Description

transforming plink binary data to MVP package.

Usage

simer.Data.Bfile2MVP(
  bfile,
  out = "simer",
  maxLine = 10000,
  type.geno = "char",
  threads = 10,
  verbose = TRUE
)

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

Arguments

bfile

Genotype in binary format (.bed, .bim, .fam).

out

the name of output file.

maxLine

the max number of line to write to big matrix for each loop.

type.geno

the type of genotype elements.

threads

number of thread for transforming.

verbose

whether to print the reminder.

Author

Haohao Zhang and Dong Yin

Details

Build date: Sep 12, 2018 Last update: Dec 28, 2024

Examples

Run this code
# \donttest{
# Get bfile path
bfilePath <- file.path(system.file("extdata", "02plinkb", package = "simer"), "demo")

# Data converting
simer.Data.Bfile2MVP(bfilePath, tempfile("outfile"))
# }

Run the code above in your browser using DataLab