View source: R/discover_meiotic_recombination.R
discover_meiotic_recombination | R Documentation |
This function takes as input two booleans controlling whether the gamete haplotypes and genotypes remain smoothed before crossover discovery (directly from HMM) or unsmoothed (replacing inferred HMM state with the original reads if they disagree) Then the function runs recombination finding It offers the option to avoid oversmoothing by superimposing initial haplotype assignments over each gamete. For example, if an allele assigned to h1 was changed by the model to h2, the early functions can fill the NAs to h2, but then un-smoothing will replace the singular h1 at the correct allele. This singular h1 could be an example of gene conversion or non-crossover.
discover_meiotic_recombination( original_gamete_data, complete_haplotypes, filled_gamete_data_list, positions, smooth_crossovers = TRUE, smooth_imputed_genotypes = FALSE, sampleName = "sampleT", chrom = "chrT", threads = 2 )
original_gamete_data |
original sparse gamete data matrix |
complete_haplotypes |
dataframe of phased diploid donor genotypes in two columns, each column corresponding with a haplotype from the donor |
filled_gamete_data_list |
the output list from |
positions |
the genomic positions corresponding to SNP indices |
smooth_crossovers |
boolean, default is TRUE, whether to use smoothed data for recombination finding. If |
smooth_imputed_genotypes |
boolean, default is FALSE, whether to use smoothed data for ending genotypes. If |
sampleName |
sample name of sample given to rhapsodi, default is "sampleT" |
chrom |
chromosome of sample given to rhapsodi, default is "chromT" |
threads |
an integer, default = 2, the number of cores to use when we use mclapply or the like |
recomb_breaks a dataframe, specifying the predicted recombination breakpoints for each gamete
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.