Description Usage Arguments Value See Also Examples
getIBDiclusters()
produces a network of clusters of isolates that have been inferred IBD over a specified interval.
Isolates that are not IBD over the interval are not included in the network or output. The networks are created
using the R package igraph
.
1 2 | getIBDiclusters(ped.genotypes, ibd.segments, interval = NULL, prop = 0,
hi.clust = FALSE)
|
ped.genotypes |
A list containing 2 objects. See the |
ibd.segments |
A data frame containing the IBD segments detected by isoRelate.
See the |
interval |
A vector of length 3 containing the region to identify clusters over. This vector should contain the chromosome ID, the start of the interval in base-pairs and the end of the interval in base-pairs; in this order respectively. |
prop |
Numeric value between 0 and 1 (inclusive).
The minimum proportion of an interval (in base-pairs) shared IBD between a pair of isolates in order for the pair to be included in the network.
For example, if |
hi.clust |
Logical. Whether to perform hierarchical clustering using the |
A list of three objects named clusters
, i.network
and hi.clust
:
A list where each object contains the names of isolates that form a disjoint cluster in the network. If hierarchical clustering has been performed then the clusters may not be disjoint.
An igraph
network used in the construction of network plots. See http://igraph.org/r/ doe more details.
Logical. Whether or not hierarchical clustering has been performed.
getGenotypes
, getIBDsegments
and getIBDpclusters
.
1 2 3 4 5 6 7 8 | # generate the isolates who are IBD over the Plasmodium falciparum CRT gene
my_i_clusters <- getIBDiclusters(ped.genotypes = png_genotypes,
ibd.segments = png_ibd,
interval = c("Pf3D7_07_v3", 403222, 406317),
prop=0,
hi.clust = FALSE)
str(my_i_clusters)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.