library(MMRFBiolinks)
devtools::load_all(".")
library(TCGAbiolinks) library(SummarizedExperiment) library(dplyr) library(DT)
In this example we will fetch clinical GDC data.
clinical <- MMRFGDC_QueryClinic(type = "clinical")
clinical %>% head %>% datatable(options = list(scrollX = TRUE, keys = TRUE))
In this example we will fetch clinical MMRF-COMMPASS Clinical information data form MMRF-COMMPASS Research Gateway. Once the dataset (.csv file) is imported into our own R environment, it is can be explored as a R-dataframe.
clinMMGateway <- read.csv("~/MMRF_CoMMpass_IA14_STAND_ALONE_TRTRESP.csv")
clinMMGateway %>% datatable(options = list(scrollX = TRUE, keys = TRUE))
Get Best Overall Response (BOR) type filtered by sample ID (Case 1) or Get sample ID filtered by BOR type (Case 2)
# case 1 IDsamples<-MMRFRG_GetBorInfo(clin.rg=clinMMGateway,bor="PR") # case 2 list.samp<- c("MMRF_0001","MMRF_0002", "MMRF_0003","MMRF_0004", "MMRF_0005","MMRF_0006", "MMRF_0007","MMRF_0008", "MMRF_0009","MMRF_0010") bestOverall<-MMRFRG_GetBorInfo(clin.rg=clinMMGateway,listSamples=list.samp)
Retrieve samples identifiers filtered by the selected type sample (case 2) or Retrieve samples identifiers filtered by the selected therapy (case 3) or Retrieve samples identifiers from both case 1 and case 2.
therapy<-"Dexamethasone" tsample<-"TRBM" clin<-MMRFGDC_QueryClinic(type = "clinical") query.mm <- GDCquery(project = "MMRF-COMMPASS", data.category = "Transcriptome Profiling", data.type = "Gene Expression Quantification", experimental.strategy = "RNA-Seq", workflow.type="HTSeq - FPKM") IDs1<-MMRFGDC_QuerySamples(query=query.mm,typesample=tsample, clin.mm=clin,therapyname=therapy) #case 1 IDs2<-MMRFGDC_QuerySamples(query=query.mm,typesample=tsample) #case 2 IDs3<-MMRFGDC_QuerySamples(clin.mm=clin,therapyname=therapy) #case 3
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.