Skip to content

Commit

Permalink
implement CNKB interaction tooltips
Browse files Browse the repository at this point in the history
  • Loading branch information
zhouji2013 committed Jul 11, 2022
1 parent 765527d commit 7653d33
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
4 changes: 3 additions & 1 deletion web/src/main/webapp/js/gene.cart.js
Original file line number Diff line number Diff line change
Expand Up @@ -727,7 +727,9 @@ const drawCNKBCytoscape = function (data, confidence_type) {
const types = { 7: "p-value", 1: "likelihood ratio", 3: "mutual information", 6: "mode of action", 4: "probability" }
$("#interaction-values").empty()
for (const type in confidences) {
$("#interaction-values").append(`<li>${types[type]}: ${confidences[type]}</li>`)
const type_name = types[type]
const tooltip = supported_confidence_types.find(x => x.name == type_name)["description"]
$("#interaction-values").append(`<li title="${tooltip}">${type_name}: ${confidences[type]}</li>`)
}
$("#network-detail-viewer > #initial-text").hide()
$("#gene-detail").hide()
Expand Down
8 changes: 4 additions & 4 deletions web/src/main/webapp/js/supported.interactomes.js
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
export const supported_confidence_types = [{
name: "p-value",
description: "the probability that the measured interaction actually occurred by chance",
description: "Probability that the measured interaction occurred by chance, under a null model.",
directionality: "decreasing"
}, {
name: "likelihood ratio",
description: "an edge weight that indicates how strong the mutual information for an edge is when compared to the maximum observed MI in the network, it ranges between 0 and 1.",
description: "Ratio of interaction mutual information divided by the maximum mutual information observed in the network (ranges between 0 and 1).",
directionality: "increasing"
}, {
name: "mutual information",
description: "quantifies the \"amount of information\" obtained about one random variable by observing the other random variable",
description: "Measure of statistical correlation between the gene expression of the two genes comprising the interaction.",
directionality: "increasing"
}, {
name: "probability",
description: "The probability that the given interaction actually exists in the system measured.",
directionality: "increasing"
}, {
name: "mode of action",
description: "indicates the sign of the association between regulator and target gene and ranges between -1 and +1. It is inferred by Spearman correlation analysis.",
description: "Spearman correlation between the gene expression of the two genes comprising the interaction (ranges between -1 and 1). Provides information about the possible mode of mutual regulation (activating or repressing, depending on positive or negative MoA).",
directionality: "increasing" /* absolute values */
}, ]

Expand Down

0 comments on commit 7653d33

Please sign in to comment.