| rduckhts_bcf_samples | R Documentation |
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.
rduckhts_bcf_samples(con, path, samples = NULL)
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. |
A data frame with 'sample_index' and 'sample_name' columns.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.