View source: R/split_with_overlap.R
split_with_overlap | R Documentation |
This function separates each gamete into overlapping windows of size determined by the user. These
overlaps are an input to the distance matrix constructed in reconstruct_haplotypes
.
split_with_overlap(vector_of_positions, window_size, overlap_denom)
vector_of_positions |
vector of SNP positions |
window_size |
User-input value for length of segment |
overlap_denom |
User-input value for denominator in calculation of overlap, or the degree of overlap between segments |
Adapated from https://stackoverflow.com/questions/8872376/split-vector-with-overlapping-samples-in-r
windows list of lists with the number of lists equal to the number of windows and each inner list containing the SNP positions in that overlapping segment
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.