Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
minerva
plugins
GSEA
Commits
35bda576
Commit
35bda576
authored
Oct 02, 2019
by
David Hoksza
Browse files
fixed submaps enrichment
parent
887804e9
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/js/index.js
View file @
35bda576
...
...
@@ -180,11 +180,16 @@ function calculatePathways() {
const
pwIdName
=
{};
const
modelHgncs
=
{};
const
modelAllProteinRnaGene
=
{};
globals
.
allBioEntities
.
forEach
(
e
=>
{
const
eType
=
e
.
getType
();
const
modelId
=
e
.
getModelId
();
if
(
!
(
modelId
in
modelAllProteinRnaGene
)){
modelAllProteinRnaGene
[
modelId
]
=
[];
}
if
(
eType
===
"
Pathway
"
)
{
pwIdName
[
e
.
id
]
=
e
.
getName
();
const
pwName
=
e
.
getName
();
...
...
@@ -199,6 +204,7 @@ function calculatePathways() {
}
}
else
if
(
eType
===
"
Protein
"
||
eType
===
"
RNA
"
||
eType
===
"
Gene
"
)
{
globals
.
allProteinRnaGene
.
push
(
e
);
modelAllProteinRnaGene
[
modelId
].
push
(
e
);
const
hgncs
=
[...
new
Set
(
e
.
getReferences
().
filter
(
ref
=>
ref
.
getType
()
===
"
HGNC_SYMBOL
"
).
map
(
ann
=>
ann
.
getResource
()))];
globals
.
hgncProteinRnaGene
[
e
.
id
]
=
hgncs
;
...
...
@@ -231,7 +237,8 @@ function calculatePathways() {
let
hgncs
=
[];
globals
.
ModelPathway
[
modelId
][
pwName
].
bioEntities
.
forEach
(
e
=>
{
const
pwDims
=
[
e
.
getX
(),
e
.
getX
()
+
e
.
getWidth
(),
e
.
getY
(),
e
.
getY
()
+
e
.
getHeight
()];
globals
.
allProteinRnaGene
.
forEach
(
prg
=>
{
modelAllProteinRnaGene
[
modelId
].
forEach
(
prg
=>
{
// globals.allProteinRnaGene.forEach(prg => {
if
(
pointInRectangle
(
prg
.
getX
(),
prg
.
getY
(),
pwDims
)
||
pointInRectangle
(
prg
.
getX
()
+
prg
.
getWidth
(),
prg
.
getY
(),
pwDims
)
||
pointInRectangle
(
prg
.
getX
(),
prg
.
getY
()
+
prg
.
getHeight
(),
pwDims
)
||
...
...
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