Description Usage Arguments Value Note Examples
View source: R/plotOriginalTree.R
Displays the original plots created by the ctgGEM package and stored in the originalTrees slot of a ctgGEMset object.
1 | plotOriginalTree(dataSet, treeType)
|
dataSet |
a ctgGEMset object |
treeType |
the type of tree to display. Must be one of
|
For treeType = "destinyDM"
and
treeType = "destinyDPT"
, returns NULL
.
For all other tree types, a ggplot2::ggplot object.
In order to reproduce original oncoNEM trees or destiny plots, the respective package(s) must be installed.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | # load HSMMSingleCell package
library(HSMMSingleCell)
# load the data for TSCAN and monocle:
data(HSMM_expr_matrix)
data(HSMM_sample_sheet)
data(HSMM_gene_annotation)
# construct a ctgGEMset
dataSet <- ctgGEMset(exprsData = HSMM_expr_matrix,
phenoData = HSMM_sample_sheet,
featureData = HSMM_gene_annotation)
TSCANinfo(dataSet) <- "ENSG00000000003.10"
# run generate_tree()
dataSet <- generate_tree(dataSet = dataSet, treeType = "TSCAN")
# view names of original trees
names(originalTrees(dataSet))
# plot original trees
plotOriginalTree(dataSet, "TSCANclustering")
plotOriginalTree(dataSet, "TSCANsingleGene")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.