vcfR_to_genomeadmixr_data {GenomeAdmixR} | R Documentation |
function to convert a vcfR object to genome_admixr_data
Description
function to convert a vcfR object to genome_admixr_data
Usage
vcfR_to_genomeadmixr_data(
vcfr_object,
chosen_chromosome,
number_of_snps = NA,
random_snps = TRUE,
verbose = FALSE
)
Arguments
vcfr_object |
result of vcfR::read.vcfR |
chosen_chromosome |
chromosome of choice |
number_of_snps |
number of snps to be loaded from the vcf file, default is to load all snps |
random_snps |
if a subset of all snps has to be taken, should these be sampled sequentially (e.g. the first 100 snps) or randomly (100 randomly sampled snps) (examples are for 'number_of_snps' = 100). |
verbose |
if true, print progress bar |
Value
genomeadmixr_data object ready for simulate_admixture_data
[Package GenomeAdmixR version 2.1.7 Index]