-
Zakaria Louadi authoredZakaria Louadi authored
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
add-expressed-proteins.component.html 2.50 KiB
<div class="modal" [class.is-active]="show">
<div class="modal-background"></div>
<div class="modal-card">
<header class="modal-card-head">
<p class="modal-card-title">
<span class="icon"><i class="fa fa-dna"></i></span>
Add Tissue Proteins
</p>
<button (click)="close()" class="delete" aria-label="close"></button>
</header>
<section class="modal-card-body">
<div class="notification is-warning" *ngIf="addedCount === 0">
No proteins have been selected or added.
</div>
<div class="notification is-warning" *ngIf="addedCount > 0">
{{addedCount}} proteins have been selected or added.
</div>
<p *ngIf="!selectedTissue">
<i>
In order to add proteins expressed in specific tissues,
please select a tissue in the main network window to the bottom.
</i>
</p>
<p *ngIf="selectedTissue" class="mb-3">
Currently selected tissue: <strong>{{selectedTissue.name}}</strong>
</p>
<div class="field" *ngIf="selectedTissue">
<label class="label" for="threshold">Threshold (TPM)</label>
<div class="control">
<input [ngModel]="threshold" (ngModelChange)="setThreshold($event)" id="threshold" class="input" type="number"
placeholder="Threshold" required>
</div>
<p class="help">
All proteins above this threshold in transcripts per million (TPM) will be added or selected.
</p>
</div>
</section>
<footer class="modal-card-foot">
<button (click)="addProteins();" class="button is-success is-rounded has-tooltip"
data-tooltip="Add all to the selection."
[disabled]="proteins.length === 0 || !selectedTissue || loading">
<span class="icon">
<i class="fas fa-plus"></i>
</span>
<span>
Add proteins
</span>
</button>
<button (click)="addVisibleProteins();" class="button is-success is-rounded has-tooltip"
data-tooltip="Add to selection if they appear in the current network."
[disabled]="proteins.length === 0 || !selectedTissue || loading">
<span class="icon">
<i class="fas fa-expand"></i>
</span>
<span>
Select proteins ({{proteins.length}})
</span>
</button>
<button (click)="close()" class="button is-rounded has-tooltip" data-tooltip="Close the current window.">
Close
</button>
</footer>
</div>
</div>