Skip to content

Commit a606580

Browse files
Merge pull request #767 from reactome/deltasignal-column-help-3
Explain DeltaSignal's result columns in the panel
2 parents f3c0455 + fe64bc3 commit a606580

2 files changed

Lines changed: 69 additions & 5 deletions

File tree

‎projects/pathway-browser/src/app/deltasignal/deltasignal-panel.component.html‎

Lines changed: 37 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -206,21 +206,53 @@ <h3>Predicted response</h3>
206206
entity, all values appear as a gradient. The pathway diagram remains interactive beside this panel.
207207
</p>
208208

209+
<details class="column-help">
210+
<summary>What do these columns mean?</summary>
211+
<dl>
212+
<dt>Activity</dt>
213+
<dd>
214+
The entity's predicted activity once the network settles, on the same scale as the input: 1× is normal,
215+
0 is none, and higher is more active.
216+
</dd>
217+
<dt>Change</dt>
218+
<dd>
219+
Predicted activity minus the entity's own normal (baseline) activity, on the same scale: below zero it
220+
falls, above zero it rises. A fall can reach −1 (switched off); a rise can reach +99, so large rises
221+
sort above every fall. The diagram's colours show this.
222+
</dd>
223+
<dt>Influence</dt>
224+
<dd>
225+
How strongly everything this entity feeds directly in the logic network (the reactions it is an input
226+
to, catalyses or regulates, a set it belongs to, and so on; the “Logic nodes &amp; edges” view shows
227+
these links) responds to a small change in it, at the predicted state. It ranks direct, local effect,
228+
not effect on the whole pathway, and has no unit; an entity that feeds nothing scores 0.
229+
</dd>
230+
</dl>
231+
<p>
232+
Rows are sorted by the size of the change; a highlighted row is one you perturbed. Where one entity is
233+
several nodes of the logic network, its row shows their average activity and change and their largest
234+
influence.
235+
</p>
236+
</details>
237+
209238
<div class="result-table" role="table" aria-label="DeltaSignal predictions">
210239
<div class="result-row header" role="row">
211-
<span>Entity</span><span>Activity</span><span>Change</span><span>Influence</span>
240+
<span role="columnheader">Entity</span>
241+
<span role="columnheader">Activity</span>
242+
<span role="columnheader">Change vs baseline</span>
243+
<span role="columnheader">Influence</span>
212244
</div>
213245
@for (row of visibleRows(); track row.uuid) {
214246
<div class="result-row" role="row" [class.perturbed]="row.perturbed">
215-
<span class="entity">
247+
<span class="entity" role="cell">
216248
<strong>{{ row.name }}</strong>
217249
<small>{{ row.reactomeId }}</small>
218250
</span>
219-
<span>{{ row.activity | number: '1.1-1' }}×</span>
220-
<span [class.positive]="row.change > 0" [class.negative]="row.change < 0">
251+
<span role="cell">{{ row.activity | number: '1.1-1' }}×</span>
252+
<span role="cell" [class.positive]="row.change > 0" [class.negative]="row.change < 0">
221253
{{ row.change > 0 ? '+' : '' }}{{ row.change | number: '1.1-1' }}
222254
</span>
223-
<span>{{ row.influence | number: '1.2-2' }}</span>
255+
<span role="cell">{{ row.influence | number: '1.2-2' }}</span>
224256
</div>
225257
}
226258
</div>

‎projects/pathway-browser/src/app/deltasignal/deltasignal-panel.component.scss‎

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,38 @@ main {
329329
font: var(--mat-sys-body-small);
330330
}
331331

332+
.column-help {
333+
margin: 0 0 12px;
334+
color: var(--on-surface-variant);
335+
font: var(--mat-sys-body-small);
336+
337+
summary {
338+
cursor: pointer;
339+
color: var(--primary);
340+
font: var(--mat-sys-label-large);
341+
}
342+
343+
dl {
344+
display: grid;
345+
grid-template-columns: max-content 1fr;
346+
gap: 6px 12px;
347+
margin: 10px 0 6px;
348+
}
349+
350+
dt {
351+
color: var(--on-surface);
352+
font-weight: 500;
353+
}
354+
355+
dd {
356+
margin: 0;
357+
}
358+
359+
p {
360+
margin: 0;
361+
}
362+
}
363+
332364
.result-table {
333365
max-height: 360px;
334366
overflow: auto;

0 commit comments

Comments
 (0)