Code covered by the BSD License  

Highlights from
MSKCC CGDS Cancer Genomics Toolbox

image thumbnail

MSKCC CGDS Cancer Genomics Toolbox



03 May 2011 (Updated )

Functions for retrieving data from the Cancer Genomics Data Server (CGDS) at MSKCC cBio.

getcancerstudies(cgdsURL, varargin)
function cancerStudies = getcancerstudies(cgdsURL, varargin)
%GETCANCERSTUDIES Get cancer studies from the cBio CGDS portal.
%    A = GETCANCERSTUDIES(cgdsURL) loads a list of available cancer types
%    into A. cdgsURL points to the CGDS web API, typically
%    The function returns a struct array with the following fields:
%    cancerTypeId, name, description.
%    Field names follow column names as returned by the web API.
%    A = GETcancerStudies(cgdsURL, 'silent')
%    runs the function in non-verbose mode, supressing status and warning
%    messages from the cBio CGDS web API. Any string or numerical
%    (e.g. 'non-verbose' or 0) will have this effect. Error messages are
%    always printed, as these indicate an unrecoverable problem.
%    See also getgeneticprofiles, getcaselists, getprofiledata,
%    getclinicaldata.

verbose = isempty(varargin);
if ~strcmp(cgdsURL(end), '/') cgdsURL(end + 1) = '/'; end

cells  = urlgetcells([cgdsURL ''], verbose);

cancerStudies.cancerTypeId = cells(2:end, 1); = cells(2:end, 2);
cancerStudies.description = cells(2:end, 3);

Contact us