Skip to content
Snippets Groups Projects
Commit 210274c1 authored by Julian Matschinske's avatar Julian Matschinske
Browse files

Merge branch 'new-algos' into 'master'

New MuST

See merge request covid-19/frontend!108
parents b76fe3c6 99f1edc5
No related branches found
No related tags found
No related merge requests found
......@@ -186,8 +186,8 @@ export class AnalysisService {
algorithm: isSuper ? 'super' : 'quick',
target: 'drug',
parameters: {
strain: dataset.backendId,
datasets: dataset.data,
strain_or_drugs: dataset.backendId,
bait_datasets: dataset.data,
seeds: isSuper ? [] : this.getSelection().map((i) => i.backendId),
},
}).toPromise();
......
......@@ -220,7 +220,7 @@ export class AnalysisWindowComponent implements OnInit, OnChanges {
this.nodeData.nodes.forEach((node) => {
const nodeSelected = this.analysis.idInSelection(node.id);
if (selected !== nodeSelected) {
Object.assign(node, NetworkSettings.getNodeStyle(node.wrapper.type, true, selected));
Object.assign(node, NetworkSettings.getNodeStyle(node.wrapper.type, node.isSeed, selected));
updatedNodes.push(node);
}
});
......
......@@ -104,7 +104,7 @@ export class LaunchAnalysisComponent implements OnInit, OnChanges {
} else if (this.algorithm === 'keypathwayminer') {
parameters.k = this.keypathwayminerK;
} else if (this.algorithm === 'multisteiner') {
parameters.strain = this.dataset;
parameters.strain_or_drugs = this.dataset;
parameters.num_trees = this.multisteinerNumTrees;
}
......
......@@ -12,8 +12,6 @@ export class NetworkSettings {
private static selectedBorderColor = '#F8981D';
private static selectBorderHighlightColor = '#F8981D';
private static selectedBorderWidth = 3;
private static selectedBorderWidthSelected = 3.2;
// Edge color
private static edgeHostVirusColor = '#686868';
......@@ -21,6 +19,13 @@ export class NetworkSettings {
private static edgeHostDrugColor = '#686868';
private static edgeHostDrugHighlightColor = '#686868';
// Border width
private static selectedBorderWidth = 3;
private static selectedBorderWidthSelected = 3;
private static borderWidth = 1;
private static borderWidthSelected = 3;
// Node Font
private static hostFontSize = 20;
private static virusFontSize = 50;
......@@ -195,6 +200,9 @@ export class NetworkSettings {
node.borderWidthSelected = this.selectedBorderWidthSelected;
} else {
node.color = nodeColor;
node.borderWidth = this.borderWidth;
node.borderWidthSelected = this.borderWidthSelected;
}
return node;
......
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