target_purity: Load Purity and Ploidy estimates

Description Usage Value Examples

View source: R/purity_ploidy.R

Description

Results from PureCN run on discovery and validation sets.

Usage

1

Value

A data.frame with columns Source, Purity, Ploidy, and dataset

Examples

 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)

seandavi/TargetOsteoAnalysis documentation built on Aug. 15, 2019, 5:12 p.m.