Created
March 28, 2018 00:34
-
-
Save hbeale/c3a65a57f4f30573f86c3213e63463ae to your computer and use it in GitHub Desktop.
plot TCGA RIN scores for some samples
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# to reproduce | |
# The biospecimen_analyte_combined file can be downloaded from Synapse.org under the id: `syn7499603` | |
library(tidyverse) | |
biospecimen_values=read_tsv("~/Documents/Dropbox/ucsc/operations/registry/TCGA biospecimen_analyted_combined.tsv") | |
biospecimen_values %>% | |
mutate( | |
rinNumeric=as.numeric(rinvalue), | |
a260_a280_ratioNumeric=as.numeric(a260_a280_ratio), | |
source=gsub("^([A-Z]*)[-_].*$", "\\1", bcr_sample_barcode) | |
) %>% | |
ggplot() + geom_histogram(aes(rinNumeric), binwidth=0.1) + ggtitle("RIN scores in some TCGA samples") + scale_x_continuous(breaks=0:10) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment