Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cbioportal-api-client

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cbioportal-api-client

cBio Portal API client with promises and response parsing

  • 0.1.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
25
increased by400%
Maintainers
1
Weekly downloads
 
Created
Source

cBio Portal API Client

Build Status Coverage Status

cBio Portal API client. Parses tab separated responses into JSON format and works in node and also in the browser via a module loader such as Webpack.


API Reference

  • cbioportal-api-client
    • module.exports(config)cbioPortal

module.exports(config) ⇒ cbioPortal

Creates a new cBio Portal API client

Kind: Exported function

ParamTypeDescription
configObjectConfiguration options object.
config.includeRawBooleanInclude the raw TSV response

Example
Basic usage:

import CbioPortal from 'cbioportal-api-client';

const cbioPortal = CbioPortal();

cbioPortal.getCancerStudies()
  .then(response => {
    console.log(response); // Prints array of cancer studies returned from API
  });

module.exports.convertResponse(response) ⇒ Promise

Converts tab delimited responses to JSON format

Kind: static method of module.exports
Returns: Promise - Resolves with the response JSON

ParamTypeDescription
responsestringTSV string

module.exports~cbioPortal : Object

cbioPortal API Object Prototype. Used as the object prototype when creating an API client object via the module factory method.

Kind: inner constant of module.exports
See: Use CbioPortal() for object creation.

cbioPortal.getTypesOfCancer() ⇒ Promise

Retrieves a list of all the clinical types of cancer stored on the server.

Kind: instance method of cbioPortal
Returns: Promise - resolves with JSON data

cbioPortal.getCancerStudies() ⇒ Promise

Retrieves meta-data regarding cancer studies stored on the server.

Kind: instance method of cbioPortal
Returns: Promise - resolves with JSON data

cbioPortal.getGeneticProfiles(query) ⇒ Promise(data)

Retrieves meta-data regarding all genetic profiles, e.g. mutation or copy number profiles, stored about a specific cancer study.

Kind: instance method of cbioPortal
Returns: Promise(data) - resolves with JSON data

ParamTypeDescription
queryObject
query.cancer_study_idstringCancer study ID

cbioPortal.getCaseLists(query) ⇒ Promise(data)

Retrieves meta-data regarding all case lists stored about a specific cancer study.

For example, a within a particular study, only some cases may have sequence data, and another subset of cases may have been sequenced and treated with a specific therapeutic protocol.

Multiple case lists may be associated with each cancer study, and this method enables you to retrieve meta-data regarding all of these case lists.

Kind: instance method of cbioPortal

ParamTypeDescription
queryObject
query.cancer_study_idstringCancer study ID

cbioPortal.getProfileData() ⇒ Promise(data)

Retrieves genomic profile data for one or more genes.

Kind: instance method of cbioPortal

ParamTypeDescription
options.case_set_idstringA unique ID used to identify the case list ID in subsequent interface calls. This is a human readable ID. For example, "gbm_all" identifies all cases profiles in the TCGA GBM study.
options.genetic_profile_idArray.<string> | stringOne or more genetic profile IDs
options.gene_listArray.<string> | stringOne or more genes, specified as HUGO Gene Symbols or Entrez Gene IDs

FAQs

Package last updated on 22 Jan 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc