scTHI_plotResult: scTHI_plotResult

Description Usage Arguments Value Examples

View source: R/scTHI_plotResult.R

Description

Creates barplots of scTHI_score results.

Usage

1
2
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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
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")

scTHI documentation built on Nov. 8, 2020, 7:37 p.m.