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

set licensed flag in quick analysis

parent c337dfc5
Branches
No related tags found
No related merge requests found
...@@ -11,13 +11,10 @@ import { ...@@ -11,13 +11,10 @@ import {
ViewChild, ViewChild,
} from '@angular/core'; } from '@angular/core';
import { HttpClient } from '@angular/common/http'; import { HttpClient } from '@angular/common/http';
import { environment } from '../../../environments/environment';
import { algorithmNames, AnalysisService } from '../../services/analysis/analysis.service'; import { algorithmNames, AnalysisService } from '../../services/analysis/analysis.service';
import { import {
Drug, Drug,
EdgeType,
NodeAttributeMap, NodeAttributeMap,
getDrugNodeId,
getProteinNodeId, getProteinNodeId,
getWrapperFromNode, getWrapperFromNode,
LegendContext, LegendContext,
...@@ -27,12 +24,9 @@ import { ...@@ -27,12 +24,9 @@ import {
Wrapper, Wrapper,
NodeInteraction, NodeInteraction,
} from '../../interfaces'; } from '../../interfaces';
import domtoimage from 'dom-to-image';
import { NetworkSettings } from '../../network-settings'; import { NetworkSettings } from '../../network-settings';
import { NetexControllerService } from 'src/app/services/netex-controller/netex-controller.service'; import { NetexControllerService } from 'src/app/services/netex-controller/netex-controller.service';
import { defaultConfig, IConfig } from 'src/app/config'; import { mapCustomEdge } from 'src/app/main-network';
import { mapCustomEdge, mapCustomNode } from 'src/app/main-network';
import { downLoadFile, pieChartContextRenderer, removeDuplicateObjectsFromList } from 'src/app/utils';
import { DrugstoneConfigService } from 'src/app/services/drugstone-config/drugstone-config.service'; import { DrugstoneConfigService } from 'src/app/services/drugstone-config/drugstone-config.service';
import { NetworkHandlerService } from 'src/app/services/network-handler/network-handler.service'; import { NetworkHandlerService } from 'src/app/services/network-handler/network-handler.service';
import { LegendService } from 'src/app/services/legend-service/legend-service.service'; import { LegendService } from 'src/app/services/legend-service/legend-service.service';
......
...@@ -119,8 +119,6 @@ export class LaunchAnalysisComponent implements OnInit, OnChanges { ...@@ -119,8 +119,6 @@ export class LaunchAnalysisComponent implements OnInit, OnChanges {
parameters.ppi_dataset = this.drugstoneConfig.config.interactionProteinProtein; parameters.ppi_dataset = this.drugstoneConfig.config.interactionProteinProtein;
parameters.pdi_dataset = this.drugstoneConfig.config.interactionDrugProtein; parameters.pdi_dataset = this.drugstoneConfig.config.interactionDrugProtein;
parameters.licenced = this.drugstoneConfig.config.licensedDatasets; parameters.licenced = this.drugstoneConfig.config.licensedDatasets;
parameters.target = this.target === 'drug' ? 'drug' : 'drug-target'; parameters.target = this.target === 'drug' ? 'drug' : 'drug-target';
// pass network data to reconstruct network in analysis result to connect non-proteins to results // 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 // drop interactions in nodes beforehand to no cause cyclic error, information is contained in edges
......
...@@ -279,9 +279,9 @@ export class AnalysisService { ...@@ -279,9 +279,9 @@ export class AnalysisService {
num_trees: 5, num_trees: 5,
tolerance: 10, tolerance: 10,
custom_edges: this.drugstoneConfig.currentConfig().customEdges.default, custom_edges: this.drugstoneConfig.currentConfig().customEdges.default,
licenced: this.drugstoneConfig.config.licensedDatasets
}; };
const resp = await this.http.post<any>(`${this.netex.getBackend()}task/`, { const resp = await this.http.post<any>(`${this.netex.getBackend()}task/`, {
algorithm: algorithm, algorithm: algorithm,
target: target, target: target,
......
...@@ -113,7 +113,7 @@ menu<br> ...@@ -113,7 +113,7 @@ menu<br>
<div style="max-width: 80vw; width: 1276px; height: 500px"> <div style="max-width: 80vw; width: 1276px; height: 500px">
<drugst-one id="netexp1" <drugst-one id="netexp1"
config="{'activateNetworkMenuButtonAdjacentDisorders':false,'activateNetworkMenuButtonAdjacentDrugs':false, 'activateNetworkMenuButtonAdjacentDisordersDrugs': false, 'licensedDatasets':true}" config="{'activateNetworkMenuButtonAdjacentDisorders':false,'activateNetworkMenuButtonAdjacentDrugs':false, 'activateNetworkMenuButtonAdjacentDisordersDrugs': false, 'licensedDatasets':false, 'interactionDrugProtein': 'DrugBank'}"
groups='{"nodeGroups":{"protein":{"type":"protein","color":"#00008b","font":{"color":"#f0f0f0"},"groupName":"Protein","shape":"circle"},"foundDrug":{"type":"drug","color":"#F12590","font":{"color":"#000000"},"groupName":"Drug","shape":"diamond"},"connectorNode":{"type":"protein","color":"#d29034","font":{"color":"#f0f0f0"},"groupName":"Connector Proteins","shape":"circle"}},"edgeGroups":{"default":{"color":"#000000","groupName":"default edge"}}}' groups='{"nodeGroups":{"protein":{"type":"protein","color":"#00008b","font":{"color":"#f0f0f0"},"groupName":"Protein","shape":"circle"},"foundDrug":{"type":"drug","color":"#F12590","font":{"color":"#000000"},"groupName":"Drug","shape":"diamond"},"connectorNode":{"type":"protein","color":"#d29034","font":{"color":"#f0f0f0"},"groupName":"Connector Proteins","shape":"circle"}},"edgeGroups":{"default":{"color":"#000000","groupName":"default edge"}}}'
network='{"nodes":[{"id":"TGFB1","group":"protein","label":"TGFB1"},{"id":"TNFRSF1A","group":"protein","label":"TNFRSF1A"},{"id":"FCGR2A","group":"protein","label":"FCGR2A"},{"id":"ENG","group":"protein","label":"ENG"},{"id":"DCTN4","group":"protein","label":"DCTN4"},{"id":"CLCA4","group":"protein","label":"CLCA4"},{"id":"STX1A","group":"protein","label":"STX1A"},{"id":"SCNN1G","group":"protein","label":"SCNN1G"},{"id":"SCNN1A","group":"protein","label":"SCNN1A"},{"id":"SCNN1B","group":"protein","label":"SCNN1B"}],"edges":[{"from":"DCTN4","to":"CFTR", "weight": "5"},{"from":"STX1A","to":"SCNN1B","group":"default"},{"from":"SCNN1A","to":"SCNN1G","group":"default"},{"from":"SCNN1B","to":"SCNN1G","group":"default"}]}'> network='{"nodes":[{"id":"TGFB1","group":"protein","label":"TGFB1"},{"id":"TNFRSF1A","group":"protein","label":"TNFRSF1A"},{"id":"FCGR2A","group":"protein","label":"FCGR2A"},{"id":"ENG","group":"protein","label":"ENG"},{"id":"DCTN4","group":"protein","label":"DCTN4"},{"id":"CLCA4","group":"protein","label":"CLCA4"},{"id":"STX1A","group":"protein","label":"STX1A"},{"id":"SCNN1G","group":"protein","label":"SCNN1G"},{"id":"SCNN1A","group":"protein","label":"SCNN1A"},{"id":"SCNN1B","group":"protein","label":"SCNN1B"}],"edges":[{"from":"DCTN4","to":"CFTR", "weight": "5"},{"from":"STX1A","to":"SCNN1B","group":"default"},{"from":"SCNN1A","to":"SCNN1G","group":"default"},{"from":"SCNN1B","to":"SCNN1G","group":"default"}]}'>
></drugst-one> ></drugst-one>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment