Description Usage Arguments Value Examples
View source: R/plotCorrelation.R
This function creates a plot of correlation strength in target genomic region from the result table. The X-coordinates represent signals, Y-coords represent genes, while each dot represents -log10(P-value) from correlation test. Additionallly all TAD boundaries can be visualized.
1 2 | plotCorAcrossRef(obj, corRes, targetRegion, showCorVals = FALSE,
symmetric = FALSE, tads = NULL)
|
obj |
InTADSig object with signals and genes combined in TADS |
corRes |
Correlation result table created by function findCorrelation() |
targetRegion |
Target genomic region visualise. |
showCorVals |
Use this option to visualize postive correlation values instead of correlation strength |
symmetric |
Activate mirrow symmetry for gene-signal connections |
tads |
TAD regions to visualize. By default only TADs persent in correlation result table are applied (NULL value). |
A ggplot
object for visualization or customization.
1 2 3 4 | inTadSig <- newSigInTAD(enhSel, enhSelGR, rpkmCountsSel, txsSel)
inTadSig <- combineInTAD(inTadSig, tadGR)
corData <- findCorrelation(inTadSig, method="pearson")
plotCorAcrossRef(inTadSig,corData,GRanges("chr15:25000000-28000000"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.