combine_input_data: combine sequence data that was previously read from file into...

View source: R/create_input_data.R

combine_input_dataR Documentation

combine sequence data that was previously read from file into a population

Description

Create data in a format that can be used by GenomeAdmixR, entries are sampled randomly from each input data set, with replacement. Probability of sampling from each input data set is driven by the input frequencies, and total number of individuals sampled is driven by pop_size.

Usage

combine_input_data(input_data_list, frequencies = NA, pop_size)

Arguments

input_data_list

list where each entry is the result of create_input_data

frequencies

frequency of each entry in the list in the starting population

pop_size

intended population size

Value

the input data entries are combined to one single population that can be used to seed simulate_admixture_data. Output is identical to create_input_data


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