Skip to content
Snippets Groups Projects
Commit 9b4544db authored by AndiMajore's avatar AndiMajore
Browse files

basically nothing

parent 89cbf21b
Branches
Tags
No related merge requests found
...@@ -143,7 +143,7 @@ export function mapCustomEdge(customEdge: NodeInteraction, config: IConfig, drug ...@@ -143,7 +143,7 @@ export function mapCustomEdge(customEdge: NodeInteraction, config: IConfig, drug
* @param config * @param config
* @returns * @returns
*/ */
export function mapNetexEdge(customEdge: NetexInteraction, config: IConfig, node_map: object): any { export function mapDrugstoneEdge(customEdge: NetexInteraction, config: IConfig, node_map: object): any {
const edges = []; const edges = [];
node_map[customEdge['proteinA']].forEach(from => { node_map[customEdge['proteinA']].forEach(from => {
node_map[customEdge['proteinB']].forEach(to => { node_map[customEdge['proteinB']].forEach(to => {
...@@ -154,6 +154,5 @@ export function mapNetexEdge(customEdge: NetexInteraction, config: IConfig, node ...@@ -154,6 +154,5 @@ export function mapNetexEdge(customEdge: NetexInteraction, config: IConfig, node
edges.push(edge); edges.push(edge);
}); });
}); });
return edges; return edges;
} }
...@@ -15,7 +15,7 @@ import { ...@@ -15,7 +15,7 @@ import {
Tissue, Tissue,
Wrapper Wrapper
} from '../../interfaces'; } from '../../interfaces';
import {ProteinNetwork, mapNetexEdge} from '../../main-network'; import {ProteinNetwork, mapDrugstoneEdge} from '../../main-network';
import {AnalysisService} from '../../services/analysis/analysis.service'; import {AnalysisService} from '../../services/analysis/analysis.service';
import {OmnipathControllerService} from '../../services/omnipath-controller/omnipath-controller.service'; import {OmnipathControllerService} from '../../services/omnipath-controller/omnipath-controller.service';
import {NetworkSettings} from '../../network-settings'; import {NetworkSettings} from '../../network-settings';
...@@ -321,8 +321,8 @@ export class ExplorerPageComponent implements OnInit, AfterViewInit { ...@@ -321,8 +321,8 @@ export class ExplorerPageComponent implements OnInit, AfterViewInit {
}); });
} }
}); });
const netexEdges = await this.netex.fetchEdges(nodes, this.drugstoneConfig.config.interactionProteinProtein, this.drugstoneConfig.config.licensedDatasets); const drugstoneEdges = await this.netex.fetchEdges(nodes, this.drugstoneConfig.config.interactionProteinProtein, this.drugstoneConfig.config.licensedDatasets);
edges.push(...netexEdges.map(netexEdge => mapNetexEdge(netexEdge, this.drugstoneConfig.currentConfig(), node_map)).flatMap(e => e)); edges.push(...drugstoneEdges.map(drugstoneEdge => mapDrugstoneEdge(drugstoneEdge, this.drugstoneConfig.currentConfig(), node_map)).flatMap(e => e));
} }
const edge_map = {}; const edge_map = {};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment