extract_individuals_vcf: Extract individuals from vcf file

extract_individuals_vcfR Documentation

Extract individuals from vcf file

Description

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.

Usage

extract_individuals_vcf(vcf)

Arguments

vcf

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

Value

A tibble with a column: INDIVIDUALS.

Author(s)

Thierry Gosselin thierrygosselin@icloud.com

See Also

radiator read_strata

Examples

## Not run: 
# 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")

## End(Not run)

thierrygosselin/radiator documentation built on April 25, 2024, 3:20 a.m.