Skip to content
agrueneberg edited this page Jul 10, 2012 · 3 revisions

For end users

Load scripts

  • TCGA.loadScript(url, callback)
  • TCGA.loadScript([url, url, ...], callback)
  • TCGA.modules(callback)

Find data

  • TCGA.find(query, callback)

Get data

  • TCGA.get(url, callback)
  • TCGA.getJSON(url, callback)
  • TCGA.getXML(url, callback)
  • TCGA.getArchive(url, callback)
  • TCGA.getRange(url, startByte, endByte, callback)

Store data

Temporarily

  • TCGA.data

Permanently

  • TCGA.store.set(key, value, callback)
  • TCGA.store.get(key, callback)
  • TCGA.store.del(key, callback)
  • TCGA.store.exists(key, callback)
  • TCGA.store.keys(callback)
  • TCGA.store.clear(callback)

For script authors

Register tab in main menu

  • TCGA.registerTab(options)

Display notifications

  • TCGA.toast.info(message, duration)
  • TCGA.toast.success(message, duration)
  • TCGA.toast.error(message, duration)

Get version information

  • TCGA.version()