Description Usage Arguments Details Value
View source: R/utility_Functions.R
For internal use.
1 | reduce_to_events(gamete_haplo, chias_locations)
|
gamete_haplo |
Numeric vector. The inherited haplotype. |
chias_locations |
Numeric vector. Chiasmata locations. |
For example, if coded allele vector was c(1, 1, 2), then this gamete did not participate in the first crossover, hence the list of chiasmata event locations, say c(40, 80), would be reduced to c(80), and the coded allele vector would be reduced to c(1, 2). That is, there is only one crossover from haplotype 1 to 2 at position 80.
We don't actually return the coded vector at this point. We only need the code for the first haplotype, after applying this function every crossover will be meaningful. That is the coded vector will never contain repeats after this function runs.
The locations of crossovers
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.