rduckhts_bcf_samples: Read the VCF/BCF Sample Catalog

View source: R/geno.R

rduckhts_bcf_samplesR Documentation

Read the VCF/BCF Sample Catalog

Description

Return one row per selected sample with its original-header zero-based 'sample_index' and 'sample_name'. Join this relation to 'read_geno()' calls from the same unchanged file; names are not duplicated into every call.

Usage

rduckhts_bcf_samples(con, path, samples = NULL)

Arguments

con

A DuckDB connection with DuckHTS loaded

path

Path to the VCF/BCF file

samples

Optional HTSlib sample selector: 'NULL' or '"-"' keeps all, '""' keeps none, comma-separated names include samples, and a leading '"^"' excludes them. Unknown names error; selected samples retain header order.

Value

A data frame with 'sample_index' and 'sample_name' columns.


Rduckhts documentation built on Oct. 25, 2026, 1:08 a.m.