View source: R/create_input_data.R
| vcfR_to_genomeadmixr_data | R Documentation | 
function to convert a vcfR object to genome_admixr_data
vcfR_to_genomeadmixr_data(
  vcfr_object,
  chosen_chromosome,
  number_of_snps = NA,
  random_snps = TRUE,
  verbose = FALSE
)
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  | 
genomeadmixr_data object ready for simulate_admixture_data
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.