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 class 'boottree':
print(x, \dots)
## S3 method for class 'boottree':
plot(x, minfreq=NULL, minprop=NULL, nboots=NULL, draw.orig=TRUE, draw.consensus=TRUE,
fix.nodes=FALSE, ask=(prod(par("mfrow"))oncotree.boottree - the output of bootstrap.oncotreenode.coords
is passed as an argument to plot.oncotree, then those coordinates are used for all trees, otherwipar(ask=.).print. Passed to plot.oncotree
for the plot method.bootstrap.oncotree: an object of class boottree with the following components:parent component of the original tree (otree).parent$parent.num component of the consesus tree - this defines the tree structure uniquely.parent$parent.num component of the tree (each pasted into one dot-separated string), while the print.boottree:
the original object is returned invisibly. It prints a summary showing the number of replicates, the number of unique trees found, and the number of times that the original tree was obtained.
For plot.oncotree:
nothing is returned. It is used for its side effect of producing a sequence of plots of the bootstrapped trees. Specifically, it plots the original tree (if draw.orig=TRUE), the consensus tree (if draw.consensus=TRUE), and then the other trees by frequency of occurrence. To limit the number of bootstrapped trees plotted, specify exactly one of minfreq, minprop or nboots. By default, if the session is interactive, the user is asked for confirmation before each new tree is drawn. To avoid this, either use ask=FALSE in the function call, or set up a layout that fits all the trees.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.oncotree.fitdata(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