From 5df0514435d644367b438de0fdca745495fb2071 Mon Sep 17 00:00:00 2001 From: TripZz Date: Sat, 9 Dec 2023 19:17:28 +0100 Subject: [PATCH] NN-418 Add more attributes to the pane --- .../src/components/pane/modules/node/NetworkStatistics.vue | 7 ++++--- frontend/src/components/pane/modules/node/NodePane.vue | 1 + 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/frontend/src/components/pane/modules/node/NetworkStatistics.vue b/frontend/src/components/pane/modules/node/NetworkStatistics.vue index 6a16f82b..9c140c24 100644 --- a/frontend/src/components/pane/modules/node/NetworkStatistics.vue +++ b/frontend/src/components/pane/modules/node/NetworkStatistics.vue @@ -28,7 +28,7 @@ export default { name: 'NetworkStatistics', - props: ['active_node'], + props: ['active_node','mode'], data() { return { statistics: {} @@ -42,8 +42,9 @@ export default { return; } - const { Degree, "Ensembl ID": EnsemblID } = com.active_node.attributes; - com.statistics = { Degree, EnsemblID } + const { Degree, "Ensembl ID": EnsemblID, "Betweenness Centrality": BetweenesCentrality, "Modularity Class": Cluster, PageRank, Category, FDR} = com.active_node.attributes; + if (this.mode == "protein") com.statistics = { Cluster, Degree, EnsemblID, BetweenesCentrality, PageRank } + else com.statistics = { Cluster, Degree, EnsemblID,Category, BetweenesCentrality, PageRank, FDR } if(com.$store.state.dcoloumns != null) { com.$store.state.dcoloumns.forEach(dcoloumn => { com.statistics[dcoloumn] = com.active_node.attributes[dcoloumn] diff --git a/frontend/src/components/pane/modules/node/NodePane.vue b/frontend/src/components/pane/modules/node/NodePane.vue index 49e7fa4d..46a07cbc 100644 --- a/frontend/src/components/pane/modules/node/NodePane.vue +++ b/frontend/src/components/pane/modules/node/NodePane.vue @@ -19,6 +19,7 @@