Quantifying missing data of all samples in VCF
Value
Invisibly returns the input VCFArrow object; called for its side
effects of writing a table of the missing data of each sample to
<project>_missingness.csv and a bar plot of it to
<project>_missingness.pdf, .svg and .png in res_path.
Details
This function generates a table of absolute and relative missing data per sample (columns sample, group, missing_n, missing_p and total_loci, missing_p being the proportion of missing genotypes), and a bar plot of the proportion of missing data per sample.
Examples
f <- system.file("extdata", "vaillantii_discosnp_sub.vcf.gz",
package = "VCFArrow")
vcf <- read_vcf(f) |> set_vcf_groups(dirname(f))
#> ℹ VCF is being read in chunks of 50000 variants
#> ✔ VCF successfully read into a VCFArrow object
assess_vcf_missing_data(vcf, res_path = tempdir(),
species = "Phyllomedusa vaillantii",
project = "vaillantii")