-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
-added statistics -added connections -added "to term graph"
- Loading branch information
Showing
10 changed files
with
271 additions
and
142 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
62 changes: 62 additions & 0 deletions
62
frontend/src/components/pane/modules/pathways/PathwayConnections.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
<template> | ||
<div id="pathway-connect"> | ||
<div class="pane-sorting"> | ||
<a class="pane_attributes" >nodes</a> | ||
<a class="pane_values">cluster</a> | ||
</div> | ||
|
||
<div class="network-results" tabindex="0" @keydown="handleKeyDown"> | ||
<table > | ||
<tbody> | ||
<tr v-for="(entry, index) in links" :key="index" class="option"> | ||
<td> | ||
<div class="statistics-attr"> | ||
<a href="#">{{entry.attributes["Name"]}}</a> | ||
</div> | ||
</td> | ||
<td> | ||
<a class="statistics-val">{{entry.attributes["Modularity Class"]}}</a> | ||
</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
name: 'PathwayConnections', | ||
props: ['active_term','gephi_data'], | ||
data() { | ||
return { | ||
links: [] | ||
} | ||
}, | ||
watch: { | ||
active_term(){ | ||
var com = this | ||
const activeTermProteins = new Set(com.active_term.proteins); | ||
com.links = com.gephi_data.nodes.filter(node => activeTermProteins.has(node.id)); | ||
} | ||
} | ||
} | ||
</script> | ||
|
||
<style> | ||
#pathway-connect { | ||
width: 100%; | ||
height: 100%; | ||
top: 8.35%; | ||
position: absolute; | ||
font-family: 'ABeeZee', sans-serif; | ||
padding: 0% 2% 2% 2%; | ||
} | ||
#pathway-connect .network-results { | ||
margin-top: 2%; | ||
height: 82%; | ||
overflow: scroll; | ||
} | ||
</style> |
54 changes: 54 additions & 0 deletions
54
frontend/src/components/pane/modules/pathways/PathwayStatistics.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
<template> | ||
<div id="statistics"> | ||
<div class="pane-sorting"> | ||
<a class="pane_attributes" >values</a> | ||
<a class="pane_values">attributes</a> | ||
</div> | ||
|
||
<div class="network-results" tabindex="0" @keydown="handleKeyDown"> | ||
<table > | ||
<tbody> | ||
<tr v-for="(key, entry, index) in statistics" :key="index" class="option"> | ||
<td> | ||
<div class="statistics-attr"> | ||
<a href="#">{{key}}</a> | ||
</div> | ||
</td> | ||
<td> | ||
<a class="statistics-val">{{entry}}</a> | ||
</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
name: 'PathwayStatistics', | ||
props: ['active_term'], | ||
data() { | ||
return { | ||
statistics: {} | ||
} | ||
}, | ||
watch: { | ||
active_term(){ | ||
console.log(this.active_term) | ||
var com = this | ||
if (com.active_term == null) { | ||
return; | ||
} | ||
const { category, id, fdr_rate, p_value } = com.active_term; | ||
com.statistics = { category, id, fdr_rate, p_value } | ||
} | ||
} | ||
} | ||
</script> | ||
|
||
<style> | ||
</style> |
Oops, something went wrong.