Description Usage Arguments See Also Examples
plotIBDsegments()
plots IBD segments for pairs across the genome. IBD segments are depicted by colored blocks.
1 2 3 4 5 6 7 | plotIBDsegments(ped.genotypes, ibd.segments, interval = NULL,
annotation.genes = NULL, annotation.genes.color = NULL,
highlight.genes = NULL, highlight.genes.labels = TRUE,
highlight.genes.color = NULL, highlight.genes.alpha = 0.1,
segment.height = 0.5, segment.color = NULL, number.per.page = NULL,
fid.label = TRUE, iid.label = TRUE, ylabel.size = 9, add.rug = FALSE,
plot.title = NULL, add.legend = TRUE)
|
ped.genotypes |
A list containing 3 objects. See the |
ibd.segments |
A data frame containing the IBD segments inferred from pairs of isolates
See the returned |
interval |
A vector of length 3 containing the genomic locations of a specific region to plot. 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.
The default is |
annotation.genes |
A data frame containing information on annotation genes to be included in the figure. This data frame must have at least 5 columns of information:
|
annotation.genes.color |
A vector of characters or numeric values containing the two colors representing gene stand (positive (+) or negative (-)) |
highlight.genes |
A data frame containing information of genes or regions to highlight. The data frame must have at least 4 columns of information:
|
highlight.genes.labels |
Logical. Whether to include gene names as labels in the figure. The default is |
highlight.genes.color |
Character string or numeric value. A single color that will be used to highlight a region/gene. The default is |
highlight.genes.alpha |
Numeric. A single value between 0 and 1 indicating the gene color transparency. The default is |
segment.height |
A numeric value giving the hight of IBD segment blocks, such that 0 < segment.height <= 1. The default is |
segment.color |
A vector of characters or numeric values denoting the color of the segments to be plotted. Two colors must be specified, one for segments with 1 allele IBD and one for segments with 2 alleles IBD. |
number.per.page |
A numeric value indicating the maximum number of IBD pairs to plot in a single graphics window. The default is
|
fid.label |
Logical. If |
iid.label |
Logical. If |
ylabel.size |
A numeric value indicating the size of the y-axis labels if drawn. The default is |
add.rug |
Logical. Whether to include SNP positions as a rug in the figure. The default is |
plot.title |
A character string of a title to be added to the figure The default is |
add.legend |
Logical. If |
getGenotypes
and getIBDsegments
.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 | # plot IBD segments
plotIBDsegments(ped.genotypes = png_genotypes,
ibd.segments = png_ibd,
interval = NULL,
annotation.genes = NULL,
annotation.genes.color = NULL,
highlight.genes = NULL,
highlight.genes.labels = FALSE,
highlight.genes.color = NULL,
highlight.genes.alpha = 0.1,
segment.height = 0.6,
number.per.page = NULL,
fid.label = FALSE,
iid.label = FALSE,
ylabel.size = 9,
add.rug = FALSE,
plot.title = "Distribution of IBD segments in PNG",
add.legend = TRUE,
segment.color = NULL)
# plot IBD segments over an interval: chromosome 7: 350000 - 550000
plotIBDsegments(ped.genotypes = png_genotypes,
ibd.segments = png_ibd,
interval = c("Pf3D7_07_v3",350000,550000),
annotation.genes = annotation_genes,
annotation.genes.color = NULL,
highlight.genes = highlight_genes,
highlight.genes.labels = FALSE,
highlight.genes.color = NULL,
highlight.genes.alpha = 0.1,
segment.height = 0.8,
number.per.page = NULL,
fid.label = FALSE,
iid.label = FALSE,
ylabel.size = 9,
add.rug = TRUE,
plot.title = "Distribution of IBD segments in PNG",
add.legend = TRUE,
segment.color = c("purple","green"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.