Skip to content
Snippets Groups Projects
Commit 06c9b1b8 authored by Maiykol's avatar Maiykol
Browse files

user input for different PDI and PPI datasets

parent a5efbbba
No related branches found
No related tags found
No related merge requests found
Pipeline #11020 failed
......@@ -19,8 +19,11 @@ export interface EdgeGroup {
color: string;
}
export type Identifier = 'hugo'|'uniprot';
export type Identifier = 'hugo'|'uniprot'|'ensg';
export type InteractionDrugProteinDB = 'DrugBank'|'Chembl'|'DGIdb';
export type InteractionProteinProteinDB = 'STRING'|'BioGRID'|'APID';
// TODO: should this be external or integrated in the backend?
export type InteractionDatabase = 'omnipath';
export interface IConfig {
......@@ -43,6 +46,8 @@ export interface IConfig {
showLegendEdges: boolean;
nodeGroups: { [key: string]: NodeGroup };
edgeGroups: { [key: string]: EdgeGroup };
interactionDrugProtein: InteractionDrugProteinDB;
interactionProteinProtein: InteractionProteinProteinDB;
interactions?: InteractionDatabase;
identifier?: Identifier;
}
......@@ -66,6 +71,8 @@ export const defaultConfig: IConfig = {
showFooter: true,
showLegend: true,
identifier: 'hugo',
interactionDrugProtein: 'DrugBank',
interactionProteinProtein: 'STRING',
nodeGroups: {
default: {
name: 'Default Group',
......
import {Component, EventEmitter, Input, OnChanges, OnInit, Output, SimpleChanges} from '@angular/core';
import { NetexControllerService } from 'src/app/services/netex-controller/netex-controller.service';
import {
Algorithm,
AlgorithmType,
......@@ -10,7 +9,6 @@ import {
QuickAlgorithmType,
TRUSTRANK
} from '../../services/analysis/analysis.service';
import {Wrapper} from '../../interfaces';
import { IConfig } from 'src/app/config';
@Component({
......@@ -110,6 +108,8 @@ export class LaunchAnalysisComponent implements OnInit, OnChanges {
input_network: this.inputNetwork
};
parameters.ppi_dataset = this.config.interactionProteinProtein;
parameters.pdi_dataset = this.config.interactionDrugProtein;
parameters.target = this.target === 'drug' ? 'drug' : 'drug-target';
// pass network data to reconstruct network in analysis result to connect non-proteins to results
// drop interactions in nodes beforehand to no cause cyclic error, information is contained in edges
......
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