Function that returns the individuals present in a vcf file. Useful to create a strata file or to make sure you have the right individuals in your VCF.

extract_individuals_vcf(vcf)

Arguments

vcf

(character, path) The path to the vcf file.

Value

A tibble with a column: INDIVIDUALS.

See also

radiator read_strata

Author

Thierry Gosselin thierrygosselin@icloud.com

Examples

if (FALSE) { # \dontrun{
# Built a strata file:
strata <- radiator::extract_individuals_vcf("my.vcf") %>%
    dplyr::mutate(STRATA = "fill this") %>%
    readr::write_tsv(x = ., file = "my.new.vcf.strata.tsv")
} # }