|
|
|
@ -59,6 +59,7 @@ export default { |
|
|
|
|
featureAddRemCount: [], |
|
|
|
|
mode: 0, // this should be 0 |
|
|
|
|
KeepIDs: [], |
|
|
|
|
KeepIDTransform: '', |
|
|
|
|
keepNumberOfCompareNodes: 0 |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
@ -99,6 +100,8 @@ export default { |
|
|
|
|
}, |
|
|
|
|
setLayerCompare() { |
|
|
|
|
this.mode = 1 |
|
|
|
|
this.KeepIDTransform = '' |
|
|
|
|
EventBus.$emit('brushLink', -1) |
|
|
|
|
this.graphVizualization() |
|
|
|
|
}, |
|
|
|
|
computeOnce () { |
|
|
|
@ -111,13 +114,11 @@ export default { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
var featureNames = JSON.parse(this.dataFS[35]) |
|
|
|
|
|
|
|
|
|
var pushEach |
|
|
|
|
var oldVal |
|
|
|
|
var newVal |
|
|
|
|
var outcome |
|
|
|
|
var countLoc |
|
|
|
|
|
|
|
|
|
var pushEachFinalFinal = [] |
|
|
|
|
for (let loop=1; loop<=5; loop++) { |
|
|
|
|
var corrMatrixCombLoc =[] |
|
|
|
@ -137,7 +138,7 @@ export default { |
|
|
|
|
pushEach = [] |
|
|
|
|
Object.entries(transf1).forEach( |
|
|
|
|
function ([feature, value]) { |
|
|
|
|
var key = Object.keys(value) |
|
|
|
|
var key = listofNodes[index] |
|
|
|
|
var retrieveData = dataLocOnce[loop-1] |
|
|
|
|
var search = Object.values(retrieveData[key]) |
|
|
|
|
oldVal = Math.abs(search[countLoc]) + oldVal |
|
|
|
@ -157,7 +158,7 @@ export default { |
|
|
|
|
countLoc = 0 |
|
|
|
|
Object.entries(transf2).forEach( |
|
|
|
|
function ([feature, value]) { |
|
|
|
|
var key = Object.keys(value) |
|
|
|
|
var key = listofNodes[index] |
|
|
|
|
var retrieveData = dataLocOnce[loop-1] |
|
|
|
|
var search = Object.values(retrieveData[key]) |
|
|
|
|
oldVal = Math.abs(search[countLoc]) + oldVal |
|
|
|
@ -177,7 +178,7 @@ export default { |
|
|
|
|
countLoc = 0 |
|
|
|
|
Object.entries(transf3).forEach( |
|
|
|
|
function ([feature, value]) { |
|
|
|
|
var key = Object.keys(value) |
|
|
|
|
var key = listofNodes[index] |
|
|
|
|
var retrieveData = dataLocOnce[loop-1] |
|
|
|
|
var search = Object.values(retrieveData[key]) |
|
|
|
|
oldVal = Math.abs(search[countLoc]) + oldVal |
|
|
|
@ -197,7 +198,7 @@ export default { |
|
|
|
|
countLoc = 0 |
|
|
|
|
Object.entries(transf4).forEach( |
|
|
|
|
function ([feature, value]) { |
|
|
|
|
var key = Object.keys(value) |
|
|
|
|
var key = listofNodes[index] |
|
|
|
|
var retrieveData = dataLocOnce[loop-1] |
|
|
|
|
var search = Object.values(retrieveData[key]) |
|
|
|
|
oldVal = Math.abs(search[countLoc]) + oldVal |
|
|
|
@ -259,7 +260,7 @@ export default { |
|
|
|
|
pushEach = [] |
|
|
|
|
Object.entries(transf1).forEach( |
|
|
|
|
function ([feature, value]) { |
|
|
|
|
var key = Object.keys(value) |
|
|
|
|
var key = listofNodes[index] |
|
|
|
|
var search = Object.values(dataLoc[key]) |
|
|
|
|
oldVal = Math.abs(search[countLoc]) + oldVal |
|
|
|
|
newVal = Math.abs(Object.values(value)[0]) + newVal |
|
|
|
@ -282,7 +283,7 @@ export default { |
|
|
|
|
countLoc = 0 |
|
|
|
|
Object.entries(transf2).forEach( |
|
|
|
|
function ([feature, value]) { |
|
|
|
|
var key = Object.keys(value) |
|
|
|
|
var key = listofNodes[index] |
|
|
|
|
var search = Object.values(dataLoc[key]) |
|
|
|
|
oldVal = Math.abs(search[countLoc]) + oldVal |
|
|
|
|
newVal = Math.abs(Object.values(value)[0]) + newVal |
|
|
|
@ -305,7 +306,7 @@ export default { |
|
|
|
|
countLoc = 0 |
|
|
|
|
Object.entries(transf3).forEach( |
|
|
|
|
function ([feature, value]) { |
|
|
|
|
var key = Object.keys(value) |
|
|
|
|
var key = listofNodes[index] |
|
|
|
|
var search = Object.values(dataLoc[key]) |
|
|
|
|
oldVal = Math.abs(search[countLoc]) + oldVal |
|
|
|
|
newVal = Math.abs(Object.values(value)[0]) + newVal |
|
|
|
@ -328,7 +329,7 @@ export default { |
|
|
|
|
countLoc = 0 |
|
|
|
|
Object.entries(transf4).forEach( |
|
|
|
|
function ([feature, value]) { |
|
|
|
|
var key = Object.keys(value) |
|
|
|
|
var key = listofNodes[index] |
|
|
|
|
var search = Object.values(dataLoc[key]) |
|
|
|
|
oldVal = Math.abs(search[countLoc]) + oldVal |
|
|
|
|
newVal = Math.abs(Object.values(value)[0]) + newVal |
|
|
|
@ -531,6 +532,7 @@ export default { |
|
|
|
|
var modeLoc = this.mode |
|
|
|
|
var selectionCounter = this.keepNumberOfCompareNodes |
|
|
|
|
var IDsGather = this.KeepIDs |
|
|
|
|
var IDsGatherTrans = this.KeepIDTransform |
|
|
|
|
|
|
|
|
|
var node = svg.append('g') |
|
|
|
|
.attr('class', 'nodes') |
|
|
|
@ -545,6 +547,7 @@ export default { |
|
|
|
|
var clearSendNode = [] |
|
|
|
|
clearSendNode.push(id.name) |
|
|
|
|
clearSendNode.push(clickedNode-1) |
|
|
|
|
EventBus.$emit('UpdateIDTrans', clickedNode+"_root") |
|
|
|
|
EventBus.$emit('transformNodes', clearSendNode) |
|
|
|
|
} else { |
|
|
|
|
for (let i = 0; i < listofNodes.length; i++) { |
|
|
|
@ -710,6 +713,8 @@ export default { |
|
|
|
|
node.append('title').text(function (d) { return d.name; }); |
|
|
|
|
EventBus.$emit('brushLink', -1) |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var chartWidth = 310; |
|
|
|
|
var chartHeight = 65; |
|
|
|
|
var margin = {left: 8, right: 15, top: 10, bottom: 40}; |
|
|
|
@ -738,14 +743,14 @@ export default { |
|
|
|
|
.text("Weighted graph readability (%)"); |
|
|
|
|
|
|
|
|
|
var readabilityCircles = chartSvg.append('g').selectAll('circle'); |
|
|
|
|
// 48 parameters |
|
|
|
|
// 32 parameter combinations |
|
|
|
|
var paramGroups = [ |
|
|
|
|
{name: 'chargeStrength', values: [-80]}, |
|
|
|
|
{name: 'linkDistance', values: [-80]}, |
|
|
|
|
{name: 'linkStrength', values: [0.25, 0.5]}, |
|
|
|
|
{name: 'gravity', values: [0, 0.5]}, |
|
|
|
|
{name: 'iterations', values: [1, 2]}, |
|
|
|
|
{name: 'alphaDecay', values: [0, 0.0228, 0.05]}, |
|
|
|
|
{name: 'alphaDecay', values: [0.0228, 0.05]}, |
|
|
|
|
{name: 'velocityDecay', values: [0.4, 0.8]} |
|
|
|
|
]; |
|
|
|
|
|
|
|
|
@ -822,7 +827,6 @@ export default { |
|
|
|
|
dispatch.call('layoutend', forceSim, p, i); |
|
|
|
|
|
|
|
|
|
++i; |
|
|
|
|
|
|
|
|
|
if (i >= paramList.length) { |
|
|
|
|
|
|
|
|
|
var widthLoc = 100; |
|
|
|
@ -1278,6 +1282,11 @@ export default { |
|
|
|
|
.text("MI") |
|
|
|
|
} |
|
|
|
|
stepper.stop(); |
|
|
|
|
if (IDsGatherTrans != '') { |
|
|
|
|
let ID = document.getElementsByClassName(IDsGatherTrans)[0].parentElement.getAttribute('id') |
|
|
|
|
d3.select('#'+ID).dispatch('click'); |
|
|
|
|
IDsGatherTrans = '' |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
}); |
|
|
|
@ -1368,7 +1377,6 @@ export default { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
this.legendOnlyOnce = false |
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
reset () { |
|
|
|
|
var svg = d3.select("#FeatureGraph"); |
|
|
|
@ -1382,6 +1390,8 @@ export default { |
|
|
|
|
EventBus.$on('Counter', data => { this.keepNumberOfCompareNodes = data }) |
|
|
|
|
EventBus.$on('UpdateIDs', data => { this.KeepIDs = data }) |
|
|
|
|
|
|
|
|
|
EventBus.$on('UpdateIDTrans', data => { this.KeepIDTransform = data }) |
|
|
|
|
|
|
|
|
|
this.InitSlider() |
|
|
|
|
EventBus.$on('CorrThres', data => { this.threshold = data }) |
|
|
|
|
EventBus.$on('CorrThres', this.initializeNetwork) |
|
|
|
|