Description Usage Arguments Value Examples
saveXLS
1 |
dat.lst |
dataframe |
xls.fn |
filename |
row.names |
row names |
... |
misc |
new Excel file
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | load(system.file("data", "allCall.lst.RData", package="BubbleTree"))
all.summary <- plyr::ldply(allCall.lst, function(.Object) {
purity <- .Object@result$prev[1]
adj <- .Object@result$ploidy.adj["adj"]
# when purity is low the calculation result is not reliable
ploidy <- (2*adj -2)/purity + 2
with(.Object@result,
return(c(Purity=round(purity,3),
Prevalences=paste(round(prev,3), collapse=", "),
"Tumor ploidy"=round(ploidy,1))))
}) %>% plyr::rename(c(".id"="Sample"))
xls.filename <- paste("all_summary", "xlsx", sep=".")
saveXLS(list(Summary=all.summary), xls.filename)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.