+
{{active_term.name}}
@@ -55,7 +60,8 @@ export default {
term_item: {
value: null,
imageSrc: require('@/assets/pane/enrichment-icon.png')
- }
+ },
+ favourite_pathways: new Set()
}
},
watch: {
@@ -87,6 +93,16 @@ export default {
select_node(value) {
this.emitter.emit("searchNode", {node: value, mode: this.mode});
},
+ bookmark_pathway(){
+ this.emitter.emit("bookmarkPathway", this.active_term);
+ this.favourite_pathways = this.$store.state.favourite_enrichments
+ }
+ },
+ mounted(){
+ this.emitter.on("updateFavouriteList", (value) => {
+ this.favourite_pathways = value
+ });
+
}
}
@@ -105,10 +121,13 @@ export default {
transform: translate(13.5%);
font-family: 'ABeeZee', sans-serif;
font-size: 0.9vw;
+ background-color: darkgreen;
+ border-radius: 5px 0 0 5px;
}
.colorbar-text {
width: 100%;
background-color: darkgreen;
+ padding: 2%;
border-radius: 5px 0 0 5px;
}
.colorbar-img {
@@ -131,4 +150,24 @@ export default {
height: 40%;
}
+ .favourite-pane-symbol{
+ height: 100%;
+ width: 10%;
+ left: 2%;
+ justify-content: center;
+ text-align: center;
+ position: relative;
+ display: flex;
+
+ }
+ .favourite-pane-symbol .custom-checkbox {
+ position: relative;
+ display: inline-block;
+ cursor: default;
+ }
+
+ .checked {
+ background-color: #ffa500;
+ }
+
\ No newline at end of file
diff --git a/frontend/src/components/toolbar/MainToolBar.vue b/frontend/src/components/toolbar/MainToolBar.vue
index 7fc9a00d..1606d568 100644
--- a/frontend/src/components/toolbar/MainToolBar.vue
+++ b/frontend/src/components/toolbar/MainToolBar.vue
@@ -25,6 +25,7 @@
v-on:mouseover="tools_active=true"
v-on:mouseleave="tools_active=false"
:gephi_data = 'gephi_data'
+ :ensembl_name_index = 'ensembl_name_index'
:tools_active = 'tools_active'
:mode = 'mode'
@tools_active_changed = 'tools_active = $event'
@@ -51,7 +52,7 @@ import SelectionList from '@/components/toolbar/modules/SelectionList.vue'
export default {
name: 'MainToolBar',
- props: ['gephi_data', 'term_data'],
+ props: ['gephi_data', 'term_data','ensembl_name_index'],
components: {
MenuWindow,
ProteinList,
diff --git a/frontend/src/components/toolbar/modules/ExportEdges.vue b/frontend/src/components/toolbar/modules/ExportEdges.vue
new file mode 100644
index 00000000..43ccb1f9
--- /dev/null
+++ b/frontend/src/components/toolbar/modules/ExportEdges.vue
@@ -0,0 +1,39 @@
+
+
+ Export edges as .csv
+
+
+
+
\ No newline at end of file
diff --git a/frontend/src/components/toolbar/modules/ExportProteins.vue b/frontend/src/components/toolbar/modules/ExportProteins.vue
index 41017996..fe17c2cc 100644
--- a/frontend/src/components/toolbar/modules/ExportProteins.vue
+++ b/frontend/src/components/toolbar/modules/ExportProteins.vue
@@ -19,11 +19,10 @@ export default {
// export proteins as csv
var csvTermsData = com.gephi_data.nodes;
-
- var terms_csv = 'name\tensembl\tcluster\tdescription\n';
+ var terms_csv = 'name\tensembl\tcluster\tdescription\tBetweenness Centrality\tPageRank\n';
csvTermsData.forEach(function(row) {
- terms_csv += row.attributes['Name'] + '\t' + row.attributes['Ensembl ID'] + '\t"' + row.attributes['Modularity Class'] + '"\t"' + row.attributes['Description'] +'"';
+ terms_csv += row.attributes['Name'] + '\t' + row.attributes['Ensembl ID'] + '\t"' + row.attributes['Modularity Class'] + '"\t"' + row.attributes['Description'] + '"\t"' + row.attributes['Betweenness Centrality'] + '"\t"' + row.attributes['PageRank'] + '"';
terms_csv += '\n';
});
diff --git a/frontend/src/components/toolbar/windows/MenuWindow.vue b/frontend/src/components/toolbar/windows/MenuWindow.vue
index d86c7359..d3b32494 100644
--- a/frontend/src/components/toolbar/windows/MenuWindow.vue
+++ b/frontend/src/components/toolbar/windows/MenuWindow.vue
@@ -42,6 +42,10 @@
+