Created
December 17, 2015 20:43
-
-
Save dfjenkins3/568a60f3a4bac4fc8618 to your computer and use it in GitHub Desktop.
Comparing GenTox with Bacterial.Mutagenesis
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
# Comparing GenTox with Bacterial.Mutagenesis | |
```{r} | |
library(Biobase) | |
setwd(file.path("C:","Users","djenk","OneDrive","grad_school","05-2015_fall", | |
"BS830_microarray","20151218-Final_Project")) | |
#TG-GATEs Data (Discovery Set) | |
load("Rat.Liver.in_vivo.repeat.annotated.RData") | |
tg.gates <- eSet | |
#Drug Matrix (Validation Set) | |
load("DM_liver_only.RData") | |
drug.matrix <- data_curated | |
rm(data_curated,eSet) | |
``` | |
Here are the drugs that are in drug.matrix and TG-GATEs | |
```{r} | |
intersect(unique(pData(drug.matrix)[,c("CHEMICAL")]),unique(as.character(pData(tg.gates)[,c("Chemical")]))) | |
``` | |
Here are three drugs that seem to have different GenTox and Bacterial Mutagenesis columns. Everything else lines up except for four compounds that are listed as "NA" in TG-GATEs GenTox and have a value in Bacterial.Mutagenesis | |
```{r} | |
pData(drug.matrix)[,c("CHEMICAL","GenTox")][grepl("carbon tetrachloride",pData(drug.matrix)[,c("CHEMICAL")]),] | |
pData(tg.gates)[,c("Chemical","Bacterial.Mutagenesis")][grepl("carbon tetrachloride",pData(tg.gates)[,c("Chemical")]),] | |
pData(drug.matrix)[,c("CHEMICAL","GenTox")][grepl("indomethacin",pData(drug.matrix)[,c("CHEMICAL")]),] | |
pData(tg.gates)[,c("Chemical","Bacterial.Mutagenesis")][grepl("indomethacin",pData(tg.gates)[,c("Chemical")]),] | |
pData(drug.matrix)[,c("CHEMICAL","GenTox")][grepl("methapyrilene",pData(drug.matrix)[,c("CHEMICAL")]),] | |
pData(tg.gates)[,c("Chemical","Bacterial.Mutagenesis")][grepl("methapyrilene",pData(tg.gates)[,c("Chemical")]),] | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment