Skip to content
GitLab
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
da5ce36d
Commit
da5ce36d
authored
Jan 15, 2020
by
maxchaza
Browse files
Merge branch 'hotfix/fixExtraction'
parents
0b815a7b
9652c611
Changes
2
Hide whitespace changes
Inline
Side-by-side
app.json
View file @
da5ce36d
...
...
@@ -7,7 +7,7 @@
/**
*
The
version
of
the
application.
*/
"version"
:
"3.0.
1
"
,
"version"
:
"3.0.
2
"
,
/**
*
The
relative
path
to
the
application's
markup
file
(html
,
jsp
,
asp
,
etc.).
...
...
app/view/form/selectMappingForExtraction/SelectMappingForExtractionController.js
View file @
da5ce36d
...
...
@@ -34,13 +34,16 @@ Ext.define('metExploreViz.view.form.selectMappingForExtraction.SelectMappingForE
if
(
view
.
lookupReference
(
'
selectMappingForExtraction
'
).
getValue
()
&&
view
.
lookupReference
(
'
selectMappingForExtraction
'
).
getValue
()
!==
"
None
"
){
var
selectedMappings
=
view
.
lookupReference
(
'
selectMappingForExtraction
'
).
getValue
();
var
nodesToLinks
=
_metExploreViz
.
getSessionById
(
"
viz
"
).
getD3Data
().
getNodes
()
.
filter
(
function
(
node
){
return
node
.
getBiologicalType
()
===
"
metabolite
"
||
node
.
getBiologicalType
()
===
"
reaction
"
;
})
.
filter
(
function
(
node
){
return
node
.
mappingDatas
.
length
!==
0
;})
.
filter
(
function
(
node
)
{
return
node
.
getMappingDatas
()
.
filter
(
map
=>
selectedMappings
.
includes
(
map
.
getMappingName
())).
length
!==
0
;
})
.
map
(
node
=>
node
.
getId
());
console
.
log
(
nodesToLinks
);
metExploreD3
.
GraphFunction
.
keepOnlySubnetwork
(
nodesToLinks
);
}
...
...
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