Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
metexplore
MetExploreViz
Commits
750b35b5
Commit
750b35b5
authored
Jul 09, 2021
by
Jean-Clement Gallardo
Browse files
add flux load in loadDataFromJSON
parent
cbc74ca3
Changes
1
Hide whitespace changes
Inline
Side-by-side
resources/lib/functions/GraphMapping.js
View file @
750b35b5
...
...
@@ -1159,6 +1159,22 @@ metExploreD3.GraphMapping = {
},
1
);
}
}
if
(
mappingJSON
.
flux
!==
{}){
var
mappingFlux
=
mappingJSON
.
flux
;
if
(
mappingJSON
.
targetLabel
===
"
reactionDBIdentifier
"
){
var
targetLabel
=
"
Identifier
"
;
}
if
(
mappingJSON
.
targetLabel
===
"
reactionName
"
){
var
targetLabel
=
"
Name
"
;
}
var
flux
=
new
Flux
(
mappingFlux
.
name
,
mappingFlux
.
conditions
,
targetLabel
,
[]);
flux
.
data
=
mappingFlux
.
data
;
_metExploreViz
.
addFlux
(
flux
);
metExploreD3
.
fireEvent
(
"
fluxMapping
"
,
"
fileParse
"
);
metExploreD3
.
fireEvent
(
"
fluxMapping
"
,
"
fileLoad
"
);
}
},
/***********************************************
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment