The function highlight private alleles by strata, using a GDS or tidy file or object.
private_alleles(data, strata = NULL, verbose = TRUE)
(4 options) A file or object generated by radiator:
tidy data
Genomic Data Structure (GDS)
How to get GDS and tidy data ?
Look into tidy_genomic_data
,
read_vcf
or
tidy_vcf
.
(path or object) The strata file or object.
Additional documentation is available in read_strata
.
Use that function to whitelist/blacklist populations/individuals.
Option to set pop.levels/pop.labels
is also available.
(optional, logical) When verbose = TRUE
the function is a little more chatty during execution.
Default: verbose = TRUE
.
A list with an object highlighting private alleles by markers and strata and a second object with private alleles summarized by strata.
if (FALSE) { # \dontrun{
corals.private.alleles.by.pop <- radiator::private_alleles(data = tidy, strata = strata.pop)
} # }