scTHI_plotResult: scTHI_plotResult

View source: R/scTHI_plotResult.R

scTHI_plotResultR Documentation

scTHI_plotResult

Description

Creates barplots of scTHI_score results.

Usage

scTHI_plotResult(scTHIresult, cexNames = 0.8, plotType = c("score",
  "pair"), nRes = NULL)

Arguments

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).

Value

None

Examples

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")

miccec/scTHI documentation built on April 21, 2023, 12:40 p.m.