fill_na | R Documentation |
This function fills in missing data (NAs) on each gamete. For each gamete, it fills the NA values with the nearest haplotype. If the two adjacent haplotypes are not the same (i.e., at a recombination breakpoint), it leaves the values as NA.
fill_na(imputed_gametes, col_index, fill_ends = TRUE)
imputed_gametes |
Output of |
col_index |
Each column of |
fill_ends |
a boolean; if TRUE, fills the NAs at the terminal edges of chromosomes with the last known or imputed SNP (for end of chromosome) and the first known or imputed SNP (for beginning of chromosome); if FALSE, leaves these genotypes as NA; default = TRUE |
gamete_sample_imputed Column with each gamete's imputed haplotypes
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.