TME_plot: TME_plot

Description Usage Arguments Value Examples

View source: R/TME_plot.R

Description

Generates a plot on the t-SNE coordinates, labeling cells by TME classification.

Usage

1
TME_plot(tsneData, Class, cexPoint = 0.8)

Arguments

tsneData

X and y coordinates of points in the plot.

Class

Object returned by TME_classification function.

cexPoint

Set the point size.

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)
result <- scTHI_runTsne(result)
Class <- TME_classification(scExample)
TME_plot(tsneData = result$tsneData, Class)

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