Skip to content

Commit

Permalink
NN-418 Add more attributes to the pane
Browse files Browse the repository at this point in the history
  • Loading branch information
TripZz committed Dec 9, 2023
1 parent a835090 commit 5df0514
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
export default {
name: 'NetworkStatistics',
props: ['active_node'],
props: ['active_node','mode'],
data() {
return {
statistics: {}
Expand All @@ -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]
Expand Down
1 change: 1 addition & 0 deletions frontend/src/components/pane/modules/node/NodePane.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
<div class="subsection-main colortype">
<NetworkStatistics
:active_node='active_node'
:mode='mode'
></NetworkStatistics>
</div>
</div>
Expand Down

0 comments on commit 5df0514

Please sign in to comment.