back_convert.Internal: Internal function, not for use. Used to convert from numeric...

Description Usage Arguments Value

View source: R/back_convert.Internal.R

Description

The output of the sim_single_sample function is integers, which index the variants of each of the SNPs. This function uses the allele frequency data-frame to convert these integers back to the variants (A,G,C,T).

Usage

1
back_convert.Internal(sim_samples, allele_freq_data)

Arguments

sim_samples

list outputted from the sim_single_sample function.

allele_freq_data

tibble ouputted from the read_in_af_data function.

Value

A list of n_samples elements, each corresponding to a sample. Each element is a matrix with a row for each allele, and a column for each SNP. The elements of the matrix are characters for nucleotides (A,C,G,T).


danwkenn/SimAdmixtR documentation built on May 30, 2020, 7:25 a.m.