snp_readBGI: Read variant info from one BGI file

Description Usage Arguments Value

View source: R/read-bgen.R

Description

Read variant info from one BGI file

Usage

1
snp_readBGI(bgifile, snp_id)

Arguments

bgifile

Path to one file with extension ".bgi".

snp_id

Character vector of SNP IDs. These should be in the form "<chr>_<pos>_<a1>_<a2>" (e.g. "1_88169_C_T" or "01_88169_C_T"). This function assumes that these IDs are uniquely identifying variants.

Value

A data frame containing variant information.


bigsnpr documentation built on June 3, 2021, 5:12 p.m.