bootstrap.oncotree provides a set of resampling
based estimates of the oncogenetic tree. Both a parametric and
non-parametric approach is available. The print and
plot methods provide interfaces for printing a summary and
plotting the resulting set of trees.
bootstrap.oncotree(otree, R, type = c("nonparametric", "parametric"))
# S3 method for boottree
print(x, …)
# S3 method for boottree
plot(x, minfreq=NULL, minprop=NULL, nboots=NULL, draw.orig=TRUE,
draw.consensus=TRUE, fix.nodes=FALSE,
ask=(prod(par("mfrow"))An object of class oncotree.
The number of bootstrap replicates.
The type of bootstrap - see Details for explanations.
An object of class boottree - the output of bootstrap.oncotree
A lower limit on the occurrence frequency of the tree in “boottree” for plotting. By default, all unique trees are plotted, which can lead to a large number of plots.
A lower limit on the occurrence proportion of the tree in “boottree” for plotting.
A lower limit on the number of bootstrapped trees plotted.
logical; if TRUE the original tree is plotted.
logical; if TRUE the consensus tree is plotted (see Details).
logical; if TRUE, the nodes for all trees are kept in the same position. If node.coords
is passed as an argument to plot.oncotree, then those coordinates are used for all trees, otherwise
the coordinates computed for the original tree are used.
logical; if TRUE, the user is asked before each plot, see par(ask=.).
Ignored for print. Passed to plot.oncotree
for the plot method.
For bootstrap.oncotree: an object of class boottree with the following components:
The parent component of the original tree (otree).
A numeric vector with the parent$parent.num component of the consesus tree - this defines the tree structure uniquely.
A matrix giving the number of trees with each possible child-parent edge. The rows correspond to children while the column to parents.
A data frame with each row representing a unique tree obtained during the bootstrap. The ‘Tree’ variable contains the parent$parent.num component of the tree (each pasted into one dot-separated string), while the ‘Freq’ variable gives the frequency of the tree among the R bootstrap replicates.
A character value with the type of the bootstrap performed.
Parametric bootstrap: This approach assumes that the model is correct. Based on otree, a random data set is generated R times using generate.data. An oncogenetic tree is fitted to each of these random data sets.
Non-parametric bootstrap: The samples (rows) from the data associated with the tree are resampled with replacement R times, each time obtaining a data set with the same sample size. An oncogenetic tree is fitted to each of these resampled data sets.
For both approaches, a consensus tree that assigns to each vertex the parent that occurs most frequently in the bootstrapped trees, is also computed.
# NOT RUN {
data(ov.cgh)
ov.tree <- oncotree.fit(ov.cgh)
set.seed(43636)
ov.b1 <- bootstrap.oncotree(ov.tree, R=100, type="parametric")
ov.b1
opar <- par(mfrow=c(3,2), mar=c(2,0,0,0))
plot(ov.b1, nboots=4)
plot(ov.b1, nboots=4, fix.nodes=TRUE)
par(opar)
# }
Run the code above in your browser using DataLab