Skip to content

Instantly share code, notes, and snippets.

@oeltoham
Created April 6, 2018 21:41
Show Gist options
  • Select an option

  • Save oeltoham/6c276c0c81f5e124ca9056d435f9cd42 to your computer and use it in GitHub Desktop.

Select an option

Save oeltoham/6c276c0c81f5e124ca9056d435f9cd42 to your computer and use it in GitHub Desktop.
gset <- getGEO('GSE26253')[[1]]
pset1 <- pData(gset)
gset2 <- getGEO('GSE15460')[[1]]
gset3 <- getGEO('GSE15460')[[2]]
pset2 <- pData(gset2)
pset3 <- pData(gset3)
View(pset1)
pset1_final <- pset1[,c("pathological stage:ch1", "recurrence free survival time (month):ch1", "status (0=non-recurrence, 1=recurrence):ch1")]
View(pset1_final)
write.csv(pset1_final, file = "GSE26253PHENOFinal.csv")
View(pset2)
pset2_final <- pset2[,c("cell line:ch1", "cell type:ch1", "tissue:ch1")]
View(pset2_final)
pset2_final <- subset(pset2_final, pset2_final$`tissue:ch1`!= "NA")
View(pset2_final)
write.csv(pset2_final, file = "GSE15460GPL570PHENOFINAL.csv")
View(pset3)
pset3_final <- pset3[,c("source_name_ch1", "characteristics_ch1", "tissue:ch1")]
View(pset3_final)
write.csv(pset3_final, file = "GSE15460GPL96PHENOFINAL.csv")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment