How to use the phovea_core/src/data.list function in phovea_core

To help you get started, we’ve selected a few phovea_core examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Caleydo / taco / src / data_set_selector.ts View on Github external
load() {
    return data
    //.list((d) => {
    //  return d.desc.type === 'matrix' && (>d.desc).value.type === VALUE_TYPE_REAL; // return numerical matrices only
    //})
      .list({'type': 'matrix'}) // use server-side filtering
      .then((list: INumericalMatrix[]) => {
        const olympicsData: ITacoDataset[] = this.prepareOlympicsData(list);
        const tcgaData: ITacoDataset[] = this.prepareTCGAData(list);
        const lastfmData: ITacoDataset[] = this.prepareLastFmData(list);
        return [].concat(olympicsData, tcgaData, lastfmData);
      });
  }
github ConfusionFlow / confusionflow / src / data_provider / PhoveaDataProvider.ts View on Github external
load(): Promise {
    const promMatrix = data
      .list({ 'type': 'matrix' }) // use server-side filtering
      .then((list: INumericalMatrix[]) => {
        return this.prepareEpochData(list);
      });
    const promTable = data
      .list({ 'type': 'table' })
      .then((list: ITable[]) => {
        return this.prepareClassLabels(list);
      });

    return Promise.all([promMatrix, promTable]).then((results: any) => {
      const dsc: IMalevoDatasetCollection = results[0];
      const tables = results[1];

      for (const key of Object.keys(tables)) {
        dsc[key].classLabels = tables[key];
      }
      return dsc;
    });
  }
github Caleydo / lineage / src / dataExplorations.ts View on Github external
public async listData() {
    console.log("Trying to list data")
    console.log(await listData())
  }