Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
minerva
plugins
GSEA
Commits
26d702c3
Commit
26d702c3
authored
Oct 28, 2019
by
David Hoksza
Browse files
fix situtation when a pathway is obtained before any species
parent
abcb5bc1
Pipeline
#15708
passed with stage
in 1 minute
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
src/js/index.js
View file @
26d702c3
require
(
'
../css/styles.css
'
);
const
pluginName
=
'
GSEA
'
;
const
pluginVersion
=
'
0.9.
0
'
;
const
pluginVersion
=
'
0.9.
1
'
;
const
globals
=
{
models
:
{},
...
...
@@ -196,6 +196,17 @@ function calculatePathways() {
modelAllProteinRnaGene
[
modelId
]
=
[];
}
if
(
!
(
modelId
in
globals
.
ModelPathway
))
{
globals
.
ModelPathway
[
modelId
]
=
{};
//empty pathway name stands for the whole submap
globals
.
ModelPathway
[
modelId
][
''
]
=
{
bioEntities
:
[],
hgncNames
:
new
Set
(),
pVal
:
undefined
};
modelHgncs
[
modelId
]
=
[];
}
if
(
eType
===
"
Pathway
"
)
{
pwIdName
[
e
.
id
]
=
e
.
getName
();
const
pwName
=
e
.
getName
();
...
...
@@ -214,17 +225,6 @@ function calculatePathways() {
const
hgncs
=
[...
new
Set
(
e
.
getReferences
().
filter
(
ref
=>
ref
.
getType
()
===
"
HGNC_SYMBOL
"
).
map
(
ann
=>
ann
.
getResource
()))];
globals
.
hgncProteinRnaGene
[
e
.
id
]
=
hgncs
;
if
(
!
(
modelId
in
globals
.
ModelPathway
))
{
globals
.
ModelPathway
[
modelId
]
=
{};
//empty pathway name stands for the whole submap
globals
.
ModelPathway
[
modelId
][
''
]
=
{
bioEntities
:
[],
hgncNames
:
new
Set
(),
pVal
:
undefined
};
modelHgncs
[
modelId
]
=
[];
}
if
(
hgncs
.
length
>
0
)
{
//empty pathway name stands for the whole (sub)map
modelHgncs
[
modelId
]
=
modelHgncs
[
modelId
].
concat
(
hgncs
);
...
...
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