| cgdsr-getClinicalData {cgdsr} | R Documentation |
Queries the CGDS API and returns clinical data for a given case list.
## S3 method for class 'CGDS' getClinicalData(x, caseList, cases, caseIdsKey, ...)
x |
A CGDS object (required) |
caseList |
A case list ID |
cases |
A vector of case IDs |
caseIdsKey |
Only used by web portal. |
... |
Not used. |
A data.frame with rows for each case, rownames corresponding to case IDs, and columns:
overall_survival_months: Overall survival, in months.
overall_survival_status: Overall survival status, usually indicated as "LIVING" or "DECEASED".
disease_free_survival_months: Disease free survival, in months.
disease_free_survival_status: Disease free survival status, usually indicated as "DiseaseFree" or "Recurred/Progressed".
age_at_diagnosis: Age at diagnosis.
<jacobsen@cbio.mskcc.org>
cBio Cancer Genomics Portal: http://www.cbioportal.org/
# Create CGDS object
mycgds = CGDS("http://www.cbioportal.org/")
getCancerStudies(mycgds)
# Get available case lists (collection of samples) for a given cancer study
mycancerstudy = getCancerStudies(mycgds)[2,1]
mycaselist = getCaseLists(mycgds,mycancerstudy)[1,1]
# Get clinical data for caselist
getClinicalData(mycgds,mycaselist)