| Numbat {numbat} | R Documentation |
Numbat R6 class
Description
Used to allow users to plot results
Value
a new 'Numbat' object
Public fields
labelcharacter Sample name
gtfdataframe Transcript annotation
joint_postdataframe Joint posterior
exp_postdataframe Expression posterior
allele_postdataframe Allele posetrior
bulk_subtreesdataframe Bulk profiles of lineage subtrees
bulk_clonesdataframe Bulk profiles of clones
segs_consensusdataframe Consensus segments
tree_postlist Tree posterior
mut_graphigraph Mutation history graph
gtreetbl_graph Single-cell phylogeny
clone_postdataframe Clone posteriors
gexp_roll_widematrix Smoothed expression of single cells
Pmatrix Genotype probability matrix
treeMLmatrix Maximum likelihood tree as phylo object
hchclust Initial hierarchical clustering
Methods
Public methods
Method new()
initialize Numbat class
Usage
Numbat$new(out_dir, i = 2, gtf = gtf_hg38, verbose = TRUE)
Arguments
out_dircharacter string Output directory
iinteger Get results from which iteration (default=2)
gtfdataframe Transcript gtf (default=gtf_hg38)
verboselogical Whether to output verbose results (default=TRUE)
Returns
a new 'Numbat' object
Method plot_phylo_heatmap()
Plot the single-cell CNV calls in a heatmap and the corresponding phylogeny
Usage
Numbat$plot_phylo_heatmap(...)
Arguments
...additional parameters passed to plot_phylo_heatmap()
Method plot_exp_roll()
Plot window-smoothed expression profiles
Usage
Numbat$plot_exp_roll(k = 3, n_sample = 300, ...)
Arguments
kinteger Number of clusters
n_sampleinteger Number of cells to subsample
...additional parameters passed to plot_exp_roll()
Method plot_mut_history()
Plot the mutation history of the tumor
Usage
Numbat$plot_mut_history(...)
Arguments
...additional parameters passed to plot_mut_history()
Method plot_sc_tree()
Plot the single cell phylogeny
Usage
Numbat$plot_sc_tree(...)
Arguments
...additional parameters passed to plot_sc_tree()
Method plot_consensus()
Plot consensus segments
Usage
Numbat$plot_consensus(...)
Arguments
...additional parameters passed to plot_sc_tree()
Method plot_clone_profile()
Plot clone cnv profiles
Usage
Numbat$plot_clone_profile(...)
Arguments
...additional parameters passed to plot_clone_profile()
Method cutree()
Re-define subclones on the phylogeny.
Usage
Numbat$cutree(max_cost = 0, n_cut = 0)
Arguments
max_costnumeric Likelihood threshold to collapse internal branches
n_cutinteger Number of cuts on the phylogeny to define subclones
Method clone()
The objects of this class are cloneable with this method.
Usage
Numbat$clone(deep = FALSE)
Arguments
deepWhether to make a deep clone.