Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Maintenance - Mise à jour mensuelle Lundi 6 Février entre 7h00 et 9h00
Open sidebar
metexplore
MetExploreViz
Commits
39e2e322
Commit
39e2e322
authored
Apr 16, 2020
by
maxchaza
Browse files
Merge branch 'hotfix/fix_d3tsv_function'
parents
5bb6e0af
7738ad91
Changes
1
Hide whitespace changes
Inline
Side-by-side
resources/lib/functions/GraphMapping.js
View file @
39e2e322
...
...
@@ -30,6 +30,7 @@ metExploreD3.GraphMapping = {
setTimeout
(
function
()
{
try
{
var
session
=
_metExploreViz
.
getSessionById
(
'
viz
'
);
var
networkData
=
session
.
getD3Data
();
var
conditions
=
mapping
.
getConditions
().
filter
(
function
(
c
)
{
return
c
!==
"
PathwayCoverage
"
&&
c
!==
"
PathwayEnrichment
"
...
...
@@ -136,9 +137,10 @@ metExploreD3.GraphMapping = {
e
.
functionUsed
=
"
mapNodeDataFile
"
;
metExploreD3
.
hideMask
(
myMask
);
var
session
=
_metExploreViz
.
getSessionById
(
'
viz
'
);
var
anim
=
session
.
isAnimated
(
"
viz
"
);
if
(
anim
)
{
var
session
=
_metExploreViz
.
getSessionById
(
'
viz
'
);
var
force
=
session
.
getForce
();
force
.
alpha
(
force
.
alpha
()).
restart
();
...
...
@@ -1045,12 +1047,11 @@ metExploreD3.GraphMapping = {
if
(
myMask
!=
undefined
){
metExploreD3
.
showMask
(
myMask
);
d3
.
tsv
(
url
,
function
(
data
)
{
d3
.
tsv
(
url
).
then
(
function
(
data
)
{
var
urlSplit
=
url
.
split
(
'
/
'
);
var
title
=
url
.
split
(
'
/
'
)[
urlSplit
.
length
-
1
];
var
targetName
=
Object
.
keys
(
data
[
0
])[
0
];
var
targetName
=
Object
.
keys
(
data
[
0
])[
0
];
var
indexOfTarget
=
Object
.
keys
(
data
[
0
]).
indexOf
(
targetName
);
var
arrayAttr
=
Object
.
keys
(
data
[
0
]);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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