View source: R/re_recode_gametes.R
re_recode_gametes | R Documentation |
This function builds a matrix with position by row and gametes by column such that each cell is a 0 or a 1 or an NA based on whether that cell in the input gamete matrix was from haplotype1, haplotype2, or was an NA. Then the 0 or 1 is found in the complete_haplotypes (phased donors) input at the corresponding positions
re_recode_gametes(dt, complete_haplotypes)
dt |
input gamete haplotype data in tibble form |
complete_haplotypes |
dataframe of phased donors with two columns (h1 and h2) and SNP positions as rows |
to_return gamete data in dataframe form with read data (0's and 1's and NAs) instead of haplotype information
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.