Skip to content
adamabeshouse edited this page Sep 25, 2015 · 2 revisions

The Data Manager is designed to handle all the data needs of a query session, as well as the OncoQueryLanguage (OQL) functionality and properties. As of now it is only a place to get data, but soon it will also be a place to set session parameters. It is accessible via the global property window.PortalDataManager.

Methods

getOQLQuery():String

Returns the active OQL query.

getQueryGenes():Array[String]

Returns the genes in the active OQL query.

getGeneticProfileIds():Array[String]###

Returns the genetic profile ids currently queried.

getSampleIds():Array[String]

Returns the sample ids currently queried.

getCancerStudyIds():Array

Returns the cancer studies currently queried.

getGenomicEventData():Array[Object]

Returns oncoprint-formatted data (always having the properties 'sample' and 'gene', sometimes having the properties 'mutation', 'mut_type', 'cna', 'prot', and 'na', among potentially others (this list may not be up to date)).

getAlteredSamples():Array[String]

Returns the ids of altered samples among those currently queried.

getUnalteredSamples():Array[String]

Returns the ids of unaltered samples among those currently queried.

getSampleClinicalAttributes():Array[Object]

Returns a list of the clinical attributes for which there is data for the queried samples (see https://github.com/cBioPortal/cbioportal/wiki/The-API-and-API-Client#sample-clinical-attributes for the form of the returned objects).

getSampleClinicalData(Array[String] attribute_ids):Array[Object]

Returns sample clinical data for the given attribute ids for the currently queried samples (see https://github.com/cBioPortal/cbioportal/wiki/The-API-and-API-Client#sample-clinical-data for the form of the returned objects).