Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
minerva
core
Commits
3636101c
Commit
3636101c
authored
3 years ago
by
Piotr Gawron
Browse files
Options
Downloads
Patches
Plain Diff
reaction types replaced with AF and PD group
parent
6c0696b2
No related branches found
Branches containing commit
No related tags found
1 merge request
!1433
Resolve "InfoTab > EXPORT > NETWORK - suggestion"
Pipeline
#51994
canceled
3 years ago
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CHANGELOG
+2
-0
2 additions, 0 deletions
CHANGELOG
frontend-js/src/main/js/gui/export/NetworkExportPanel.js
+49
-2
49 additions, 2 deletions
frontend-js/src/main/js/gui/export/NetworkExportPanel.js
with
51 additions
and
2 deletions
CHANGELOG
+
2
−
0
View file @
3636101c
minerva (16.1.0~alpha.0) stable; urgency=medium
* Improvement: possibility to register map in minerva-net (#1595)
* Small improvement: reaction type list simplified in the export network
(#1246)
* Small improvement: export to image allows to define size of the image (#955)
* Small improvement: AVOGADRO unit type from SBML is parsed properly (#1612)
* Small improvement: data overlays have automatically generated legend (#205,
...
...
This diff is collapsed.
Click to expand it.
frontend-js/src/main/js/gui/export/NetworkExportPanel.js
+
49
−
2
View file @
3636101c
...
...
@@ -12,6 +12,36 @@ var Functions = require('../../Functions');
var
ValidationError
=
require
(
'
../../ValidationError
'
);
var
Alias
=
require
(
'
../../map/data/Alias
'
);
var
ACTIVITY_FLOW_TYPES
=
[
"
Reduced modulation
"
,
"
Reduced physical stimulation
"
,
"
Reduced trigger
"
,
"
Unknown reduced modulation
"
,
"
Unknown reduced physical stimulation
"
,
"
Unknown reduced trigger
"
,
"
Negative influence
"
,
"
Positive influence
"
,
"
Unknown negative influence
"
,
"
Unknown positive influence
"
];
var
PROCESS_DESCRIPTION_TYPES
=
[
"
Dissociation
"
,
"
Heterodimer association
"
,
"
Inhibition
"
,
"
Known transition omitted
"
,
"
Modulation
"
,
"
Physical stimulation
"
,
"
State transition
"
,
"
Transcription
"
,
"
Translation
"
,
"
Transport
"
,
"
Trigger
"
,
"
Truncation
"
,
"
Unknown catalysis
"
,
"
Unknown inhibition
"
,
"
Unknown transition
"
];
/**
*
* @param {Configuration} [params.configuration]
...
...
@@ -45,7 +75,16 @@ NetworkExportPanel.prototype.init = function () {
elementTypeDiv
.
appendChild
(
self
.
_createSelectTypeDiv
(
configuration
.
getElementTypes
(),
"
Element type
"
));
element
.
appendChild
(
elementTypeDiv
);
var
reactionTypeDiv
=
Functions
.
createElement
({
type
:
"
div
"
,
name
:
"
reactionTypes
"
});
reactionTypeDiv
.
appendChild
(
self
.
_createSelectTypeDiv
(
configuration
.
getReactionTypes
(),
"
Reaction type
"
));
reactionTypeDiv
.
appendChild
(
self
.
_createSelectTypeDiv
(
[{
name
:
"
Activity flow
"
,
parentClass
:
"
Reaction
"
,
className
:
"
ActivityFlow
"
},
{
name
:
"
Process description
"
,
parentClass
:
"
Reaction
"
,
className
:
"
ProcessDescription
"
}],
"
Reaction type
"
));
element
.
appendChild
(
reactionTypeDiv
);
var
submapDiv
=
Functions
.
createElement
({
type
:
"
div
"
,
name
:
"
submapTypes
"
});
submapDiv
.
appendChild
(
self
.
_createSelectSubmapDiv
(
self
.
getProject
().
getModels
()));
...
...
@@ -144,7 +183,15 @@ NetworkExportPanel.prototype.getAllColumns = function () {
* @returns {boolean}
*/
function
matchReaction
(
reaction
,
elementIds
,
reactionTypes
,
submapIds
)
{
if
(
$
.
inArray
(
reaction
.
getType
(),
reactionTypes
)
===
-
1
)
{
var
types
=
[];
if
(
$
.
inArray
(
"
Activity flow
"
,
reactionTypes
)
>=
0
)
{
types
=
types
.
concat
(
ACTIVITY_FLOW_TYPES
);
}
if
(
$
.
inArray
(
"
Process description
"
,
reactionTypes
)
>=
0
)
{
types
=
types
.
concat
(
PROCESS_DESCRIPTION_TYPES
);
}
if
(
$
.
inArray
(
reaction
.
getType
(),
types
)
===
-
1
)
{
return
false
;
}
if
(
$
.
inArray
(
reaction
.
getModelId
(),
submapIds
)
===
-
1
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment