Skip to content
Snippets Groups Projects
Commit aec87af7 authored by ge54hev's avatar ge54hev
Browse files

remove dummy

parent 2023a553
No related branches found
No related tags found
No related merge requests found
...@@ -6,7 +6,6 @@ interface Algorithm { ...@@ -6,7 +6,6 @@ interface Algorithm {
name: string; name: string;
} }
const DUMMY: Algorithm = {slug: 'dummy', name: 'Dummy'};
const TRUSTRANK: Algorithm = {slug: 'trustrank', name: 'Trust-Rank'}; const TRUSTRANK: Algorithm = {slug: 'trustrank', name: 'Trust-Rank'};
const KEYPATHWAYMINER: Algorithm = {slug: 'keypathwayminer', name: 'KeyPathwayMiner'}; const KEYPATHWAYMINER: Algorithm = {slug: 'keypathwayminer', name: 'KeyPathwayMiner'};
const MULTISTEINER: Algorithm = {slug: 'multisteiner', name: 'Multi-Steiner'}; const MULTISTEINER: Algorithm = {slug: 'multisteiner', name: 'Multi-Steiner'};
...@@ -25,7 +24,7 @@ export class LaunchAnalysisComponent implements OnInit, OnChanges { ...@@ -25,7 +24,7 @@ export class LaunchAnalysisComponent implements OnInit, OnChanges {
@Output() @Output()
public showChange = new EventEmitter<boolean>(); public showChange = new EventEmitter<boolean>();
public algorithm: 'dummy' | 'trustrank' | 'keypathwayminer' | 'multisteiner'; public algorithm: 'trustrank' | 'keypathwayminer' | 'multisteiner';
public algorithms: Array<Algorithm> = []; public algorithms: Array<Algorithm> = [];
...@@ -52,10 +51,10 @@ export class LaunchAnalysisComponent implements OnInit, OnChanges { ...@@ -52,10 +51,10 @@ export class LaunchAnalysisComponent implements OnInit, OnChanges {
ngOnChanges(changes: SimpleChanges): void { ngOnChanges(changes: SimpleChanges): void {
if (this.target === 'drug-target') { if (this.target === 'drug-target') {
this.algorithms = [TRUSTRANK, MULTISTEINER, KEYPATHWAYMINER, DUMMY]; this.algorithms = [TRUSTRANK, MULTISTEINER, KEYPATHWAYMINER];
this.trustrankStrain = 'SARS_CoV2'; this.trustrankStrain = 'SARS_CoV2';
} else if (this.target === 'drug') { } else if (this.target === 'drug') {
this.algorithms = [TRUSTRANK, DUMMY]; this.algorithms = [TRUSTRANK];
this.trustrankStrain = 'drugs'; this.trustrankStrain = 'drugs';
} }
} }
...@@ -70,9 +69,7 @@ export class LaunchAnalysisComponent implements OnInit, OnChanges { ...@@ -70,9 +69,7 @@ export class LaunchAnalysisComponent implements OnInit, OnChanges {
seeds: this.analysis.getSelection().map((item) => item.name), seeds: this.analysis.getSelection().map((item) => item.name),
}; };
if (this.algorithm === 'dummy') { if (this.algorithm === 'trustrank') {
// No parameters for dummy
} else if (this.algorithm === 'trustrank') {
parameters.strain_or_drugs = this.trustrankStrain; parameters.strain_or_drugs = this.trustrankStrain;
parameters.datasets = []; parameters.datasets = [];
parameters.ignored_edge_types = []; parameters.ignored_edge_types = [];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment