View source: R/scTHI_plotResult.R
scTHI_plotResult | R Documentation |
Creates barplots of scTHI_score results.
scTHI_plotResult(scTHIresult, cexNames = 0.8, plotType = c("score",
"pair"), nRes = NULL)
scTHIresult |
scTHI object. |
cexNames |
Size of names in barplot. |
plotType |
Type of plot to be generated. Default is "score", can be also "pair". The "score" option will generate a barplot for each resulted interaction pair, representing the calculated interaction score and the related p-Value.The "pair" option will generate two barplot for each resulted interaction pair, representing the percentage of cells of each cluster expressing partnerA and partnerB gene, respectively. |
nRes |
Number of pairs to plot (all if NULL). |
None
library(scTHI.data)
data(scExample)
result <- scTHI_score(scExample,
cellCusterA = colnames(scExample)[1:30],
cellCusterB = colnames(scExample)[31:100],
cellCusterAName = "ClusterA",
cellCusterBName = "ClusterB", filterCutoff = 0,
pvalueCutoff = 1, nPermu = 100, ncore = 8)
scTHI_plotResult(result, plotType = "score")
scTHI_plotResult(result, plotType = "pair")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.