getbd5snp_con: Read a Format 5 SNP using a persistent open connection

View source: R/format5.R

getbd5snp_conR Documentation

Read a Format 5 SNP using a persistent open connection

Description

Like getbd5snp_buf but reuses an already-open file connection instead of opening and closing it on every call. Use openbd5con before the loop and closebd5con (or let the finalizer handle it) after.

Usage

getbd5snp_con(bd5info, snp, dosage, p0, p1, p2, bd5con)

Arguments

bd5info

Object returned by getbdinfo.

snp

1-based integer index or character SNP ID.

dosage

Pre-allocated numeric(n_samples) vector.

p0

Pre-allocated numeric(n_samples) vector.

p1

Pre-allocated numeric(n_samples) vector.

p2

Pre-allocated numeric(n_samples) vector.

bd5con

Object returned by openbd5con.

Value

NULL invisibly. dosage, p0, p1, and p2 are updated in place.


BinaryDosage documentation built on April 30, 2026, 1:09 a.m.