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 @@