Description Usage Arguments Value Examples
The purpose of the function merge_cluster is to
define an enlarged window of SNPs which
are in linkage disequilibrium with the target. It replaces the indices of neighbor
clusters with center, the target cluster index. The neighborhood is defined
according to the parameter k (see Arguments for more details). Subsequently,
we filter them out for the estimate of the propensity scores.
1 | merge_cluster(clusters, center, k = 3)
|
clusters |
vector of cluster memberships. Typically, the output
of |
center |
the target variant cluster |
k |
vector or integer. if |
The updated cluster membership vector. The cluster indexing is also updated so that the maximum cluster index is equal to the total number of clusters after merging.
1 2 3 | hc <- hclust(dist(USArrests))
clusters <- cutree(hc, k = 10)
merge_cluster(clusters, center=5, k=2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.