vcfR_to_genomeadmixr_data: function to convert a vcfR object to genome_admixr_data

View source: R/create_input_data.R

vcfR_to_genomeadmixr_dataR 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


thijsjanzen/GenomeAdmixR documentation built on Feb. 16, 2024, 7:27 p.m.