Description Usage Value Examples
View source: R/purity_ploidy.R
Results from PureCN run on discovery and validation sets.
1 |
A data.frame
with columns Source,
Purity, Ploidy, and dataset
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | pure = target_purity()
head(pure)
library(magrittr)
library(dplyr)
pure %>%
group_by(dataset) %>%
summarise(medploidy = median(Ploidy, na.rm=TRUE),
medpurity = median(Purity, na.rm=TRUE),
lowpurity = quantile(Purity, 0.1, na.rm=TRUE))
library(ggplot2)
p = ggplot(pure, aes(x=Purity)) +
geom_density(aes(group=dataset, color=dataset)) +
ggtitle('Tumor Purity Estimates')
print(p)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.