View source: R/cluster_selection.R
cluster_selection | R Documentation |
This function selects marker clusters to be used for haplotype generation.
Clusters are selecte based on three different analysis criteria : high enough
linkage disequilibrium between marker pairs (parameter ld_threshold
),
proximity between markers in a pair (parameter max_pair_distance
),
and proximity between markers and gene center position (parameter
max_marker_distance
).
cluster_selection(snp_data, center_pos, ld_threshold = 0.5,
max_pair_distance = 10^10, max_marker_distance = 10^10)
snp_data |
A list describing snp_data and containing at least two items :
|
center_pos |
A numeric of length one. The central position of the gene of interest. |
ld_threshold |
A numeric between 0 and 1. The minimum LD value to pass the filter. Defaults to 0.5. |
max_pair_distance |
A numeric of length one. The maximum distance (in base pairs) between two markers in a pair for markers in that pair to be selected. |
max_marker_distance |
A numeric of length one. The maximum distance (in base pairs) between the marker and the gene center for a marker to be selected. |
This function is meant for internal package use only. It is called by function
haplo_selection
in the final stage of marker selection.
A list similar to that provided as input, but with a subset of markers that passed the filters.
NULL
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.