$plotChr | R Documentation |
Method for plotting 2-point recombination fraction and LOD score estimates when the SNPs are ordered according to the genomic assembly.
BCobj$plotChr(parent = "maternal", mat="rf", filename=NULL, chrS=2, lmai=2)
FSobj$plotChr(parent = "maternal", mat="rf", filename=NULL, chrS=2, lmai=2)
ICobj$plotChr(mat="rf", filename=NULL, chrS=2, lmai=2)
parent |
Character value specifying whether the SNPs segreagting in the maternal parent should be
plotted ( |
mat |
Character value for the matrix to be plotted. |
filename |
Character value giving the name of the file to save the plot to. If |
chrS |
Numeric value. Controls the size of the chromosome names on the left side of the plot. |
lmai |
Numeric value. Controls the amount of white space for the chromosome names on the left side of the plot. |
This function plots the heatmap of the matrix of 2-point recombination fraction estimates (or 2-point LOD scores)
as computed from the $rf_2pt
function when the SNPs are ordered according to the genomic assembly (as given in the VCF file).
Timothy P. Bilton
BC
, FS
, IC
## Simulate some sequencing data
set.seed(6745)
config <- list(replicate(2,sample(c(1,2,4), size=30, replace=TRUE), simplify = FALSE))
F1data <- simFS(0.01, config=config, meanDepth=5, nInd=50)
## Compute 2-point recombination fractions
F1data$rf_2pt()
## Plot the heatmap
F1data$plotChr()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.