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

analysis parameter layout

parent 32766f41
No related branches found
No related tags found
No related merge requests found
...@@ -34,7 +34,7 @@ import { ...@@ -34,7 +34,7 @@ import {
faRulerVertical, faDna, faMicroscope, faBook, faPause, faTrash, faSpinner, faExclamationTriangle, faPlus, faRulerVertical, faDna, faMicroscope, faBook, faPause, faTrash, faSpinner, faExclamationTriangle, faPlus,
faExpand, faInfo, faRocket, faAngleDown, faSearch, faFastForward, faExternalLinkAlt, faTasks, faFilter, faExpand, faInfo, faRocket, faAngleDown, faSearch, faFastForward, faExternalLinkAlt, faTasks, faFilter,
faMinus, faUpload, faAngleDoubleDown, faSync, faBroom, faAngleDoubleUp, faChild, faHeadSideMask, faBiohazard, faMinus, faUpload, faAngleDoubleDown, faSync, faBroom, faAngleDoubleUp, faChild, faHeadSideMask, faBiohazard,
faBullseye, faSeedling, faSyncAlt, faCompress, faKey, faInfoCircle faBullseye, faSeedling, faSyncAlt, faCompress, faKey, faInfoCircle, faWrench
} from '@fortawesome/free-solid-svg-icons'; } from '@fortawesome/free-solid-svg-icons';
import { TooltipModule } from 'primeng/tooltip'; import { TooltipModule } from 'primeng/tooltip';
import { NetworkMenuComponent } from './components/network/network-menu/network-menu.component'; import { NetworkMenuComponent } from './components/network/network-menu/network-menu.component';
...@@ -100,7 +100,7 @@ export class AppModule { ...@@ -100,7 +100,7 @@ export class AppModule {
faSpinner, faExclamationTriangle, faPlus, faExpand, faInfo, faRocket, faAngleDown, faSearch, faSpinner, faExclamationTriangle, faPlus, faExpand, faInfo, faRocket, faAngleDown, faSearch,
faFastForward, faExternalLinkAlt, faTasks, faFilter, faMinus, faUpload, faAngleDoubleDown, faFastForward, faExternalLinkAlt, faTasks, faFilter, faMinus, faUpload, faAngleDoubleDown,
faSync, faBroom, faAngleDoubleUp, faChild, faHeadSideMask, faBiohazard, faBullseye, faSeedling, faSync, faBroom, faAngleDoubleUp, faChild, faHeadSideMask, faBiohazard, faBullseye, faSeedling,
faSyncAlt, faExpand, faCompress, faKey, faInfoCircle); faSyncAlt, faExpand, faCompress, faKey, faInfoCircle,faWrench);
const NetworkExpander = createCustomElement(ExplorerPageComponent, { injector }); const NetworkExpander = createCustomElement(ExplorerPageComponent, { injector });
// Register the custom element with the browser. // Register the custom element with the browser.
customElements.define('drugst-one', NetworkExpander); customElements.define('drugst-one', NetworkExpander);
......
...@@ -47,21 +47,31 @@ ...@@ -47,21 +47,31 @@
[class.is-visible]="tab === 'meta'" [class.is-visible]="tab === 'meta'"
> >
<div *ngIf="task"> <div *ngIf="task">
<p <div class="columns m-1">
<div class="column content">
<h4
class="is-4 has-text-weight-bold"
*ngIf=" *ngIf="
task.info.algorithm !== 'quick' && task.info.algorithm !== 'super' task.info.algorithm !== 'quick' &&
task.info.algorithm !== 'super'
" "
> >
<span class="icon">
<i class="fas fa-wrench" aria-hidden="true"></i>
</span>
Algorithm: Algorithm:
<strong class="has-text-normal">{{ {{ algorithmNames[task.info.algorithm] }}
algorithmNames[task.info.algorithm] </h4>
}}</strong> </div>
</p> </div>
<div> <div class="columns m-1">
<div class="column">
<table class="table is-narrow"> <table class="table is-narrow">
<tbody> <tbody>
<tr <tr
*ngIf="result && result.geneInteractionDataset !== undefined" *ngIf="
result && result.geneInteractionDataset !== undefined
"
> >
<td>Protein-Protein Interaction Dataset</td> <td>Protein-Protein Interaction Dataset</td>
<td> <td>
...@@ -70,7 +80,9 @@ ...@@ -70,7 +80,9 @@
</td> </td>
</tr> </tr>
<tr <tr
*ngIf="result && result.drugInteractionDataset !== undefined" *ngIf="
result && result.drugInteractionDataset !== undefined
"
> >
<td>Protein-Drug Interaction Dataset</td> <td>Protein-Drug Interaction Dataset</td>
<td> <td>
...@@ -145,6 +157,7 @@ ...@@ -145,6 +157,7 @@
</tbody> </tbody>
</table> </table>
</div> </div>
</div>
<div <div
*ngIf=" *ngIf="
task.info.algorithm === 'quick' || task.info.algorithm === 'super' task.info.algorithm === 'quick' || task.info.algorithm === 'super'
...@@ -241,7 +254,9 @@ ...@@ -241,7 +254,9 @@
<button <button
class="button is-rounded has-tooltip is-small" class="button is-rounded has-tooltip is-small"
pTooltip="Normalize the scores" pTooltip="Normalize the scores"
[tooltipStyleClass]="'drgstn drgstn-tooltip drgstn-tooltip-top'" [tooltipStyleClass]="
'drgstn drgstn-tooltip drgstn-tooltip-top'
"
tooltipPosition="top" tooltipPosition="top"
[class.is-primary]="tableNormalize" [class.is-primary]="tableNormalize"
(click)="toggleNormalization(true)" (click)="toggleNormalization(true)"
...@@ -257,7 +272,9 @@ ...@@ -257,7 +272,9 @@
<button <button
class="button is-rounded has-tooltip is-small" class="button is-rounded has-tooltip is-small"
pTooltip="Disable normalization of the scores." pTooltip="Disable normalization of the scores."
[tooltipStyleClass]="'drgstn drgstn-tooltip drgstn-tooltip-top'" [tooltipStyleClass]="
'drgstn drgstn-tooltip drgstn-tooltip-top'
"
tooltipPosition="top" tooltipPosition="top"
[class.is-primary]="!tableNormalize" [class.is-primary]="!tableNormalize"
(click)="toggleNormalization(false)" (click)="toggleNormalization(false)"
...@@ -319,7 +336,6 @@ ...@@ -319,7 +336,6 @@
></app-prot-table> ></app-prot-table>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
......
...@@ -175,6 +175,7 @@ export class AnalysisPanelComponent implements OnInit, OnChanges, AfterViewInit ...@@ -175,6 +175,7 @@ export class AnalysisPanelComponent implements OnInit, OnChanges, AfterViewInit
if (this.task && this.task.info.done) { if (this.task && this.task.info.done) {
this.result = await this.netex.getTaskResult(this.token); this.result = await this.netex.getTaskResult(this.token);
console.log(this.result)
const nodeAttributes = this.result.nodeAttributes || {}; const nodeAttributes = this.result.nodeAttributes || {};
this.networkHandler.activeNetwork.seedMap = nodeAttributes.isSeed || {}; this.networkHandler.activeNetwork.seedMap = nodeAttributes.isSeed || {};
......
...@@ -57,7 +57,6 @@ export class ProteinNetwork { ...@@ -57,7 +57,6 @@ export class ProteinNetwork {
} }
for (const edge of this.edges) { for (const edge of this.edges) {
console.log(edge)
edges.push(mapCustomEdge(edge, config)); edges.push(mapCustomEdge(edge, config));
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment