Skip to content
Snippets Groups Projects
Commit 237d274c authored by Michael Hartung's avatar Michael Hartung
Browse files

Versioning of datasets

parent 83b624d3
No related branches found
No related tags found
No related merge requests found
......@@ -29,6 +29,14 @@
<div>
<table class="table is-narrow">
<tbody>
<tr *ngIf="result && result.geneInteractionDataset !== undefined">
<td>Protein-Protein Interaction Dataset</td>
<td>{{result.geneInteractionDataset.name}} (Version {{result.geneInteractionDataset.version}})</td>
</tr>
<tr *ngIf="result && result.drugInteractionDataset !== undefined">
<td>Protein-Drug Interaction Dataset</td>
<td>{{result.drugInteractionDataset.name}} (Version {{result.drugInteractionDataset.version}})</td>
</tr>
<tr *ngIf="task.info.parameters.resultSize !== undefined">
<td>Result Size</td>
<td>{{task.info.parameters.resultSize}}</td>
......
......@@ -77,9 +77,9 @@ export class AnalysisPanelComponent implements OnInit, OnChanges {
@Output() visibleItems = new EventEmitter<[any[], [Node[], Tissue], NodeInteraction[]]>();
public task: Task | null = null;
public result: any = null;
public myConfig: IConfig = JSON.parse(JSON.stringify(defaultConfig));
public network: any;
private nodeData: { nodes: any, edges: any } = {nodes: null, edges: null};
private drugNodes: any[] = [];
......@@ -165,8 +165,9 @@ export class AnalysisPanelComponent implements OnInit, OnChanges {
}
if (this.task && this.task.info.done) {
const result = await this.netex.getTaskResult(this.token);
const nodeAttributes = result.nodeAttributes || {};
this.result = await this.netex.getTaskResult(this.token);
console.log(this.result)
const nodeAttributes = this.result.nodeAttributes || {};
this.seedMap = nodeAttributes.isSeed || {};
......@@ -177,7 +178,7 @@ export class AnalysisPanelComponent implements OnInit, OnChanges {
this.showDrugs = false;
// Create
const {nodes, edges} = this.createNetwork(result);
const {nodes, edges} = this.createNetwork(this.result);
this.nodeData.nodes = new vis.DataSet(nodes);
this.nodeData.edges = new vis.DataSet(edges);
......
......@@ -44,6 +44,7 @@
"identifier": "symbol",
"nodeShadow": true,
"edgeShadow": true,
"interactionDrugProtein": "ChEMBL",
"legendUrl": "https://exbio.wzw.tum.de/covex/assets/leg1.png"
}'
network='{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment