Include stratification metadata, e.g. population-level information,
to the FORMAT field of a VCF file.
Arguments
- data
A VCF file
- strata
(optional) A tab delimited file at least 2 columns with header:
INDIVIDUALSandSTRATA. TheSTRATAand any other columns can be any hierarchical grouping. To create a strata file seeindividuals2strata.- filename
(optional) The file name for the modifed VCF, written to the working directory. Default:
filename = NULLwill make a custom filename with data and time. Default:filename = NULL.
Value
A VCF file in the working directory with new FORMAT field(s)
correponding to the strata column(s).
References
Danecek P, Auton A, Abecasis G et al. (2011) The variant call format and VCFtools. Bioinformatics, 27, 2156-2158.
Author
Thierry Gosselin thierrygosselin@icloud.com
