Learn R Programming

GRAB (version 0.2.2)

getVersionFromBGEN: Get version information from BGEN file

Description

Get version information from BGEN file (check link)

Usage

getVersionFromBGEN(bgenFile)

Value

A character string indicating the BGEN file version. Possible values include:

v1.1

BGEN format version 1.1

v1.2

BGEN format version 1.2

Version Layout = 0, which is not supported...

Error message for unsupported version 0

Version Layout > 2, which is reserved for future use...

Warning message for future versions

Arguments

bgenFile

a character of BGEN file.

Examples

Run this code

BGENFile <- system.file("extdata", "simuBGEN.bgen", package = "GRAB")
getVersionFromBGEN(BGENFile)

Run the code above in your browser using DataLab