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
6eda7ed1
Commit
6eda7ed1
authored
5 years ago
by
Piotr Gawron
Browse files
Options
Downloads
Patches
Plain Diff
export of z index for reactions added
parent
a096aa33
No related branches found
No related tags found
1 merge request
!990
Gpml prototype
Pipeline
#15907
passed
5 years ago
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
pathvisio/src/main/java/lcsb/mapviewer/wikipathway/XML/ModelToGPML.java
+10
-8
10 additions, 8 deletions
...main/java/lcsb/mapviewer/wikipathway/XML/ModelToGPML.java
with
10 additions
and
8 deletions
pathvisio/src/main/java/lcsb/mapviewer/wikipathway/XML/ModelToGPML.java
+
10
−
8
View file @
6eda7ed1
...
@@ -269,7 +269,7 @@ public class ModelToGPML {
...
@@ -269,7 +269,7 @@ public class ModelToGPML {
/**
/**
* This function transform Compartments into Shapes (Oval or Rectangle) from
* This function transform Compartments into Shapes (Oval or Rectangle) from
* PathVisio.
* PathVisio.
*
*
* @param model
* @param model
* model where compartments are placed
* model where compartments are placed
...
@@ -338,7 +338,10 @@ public class ModelToGPML {
...
@@ -338,7 +338,10 @@ public class ModelToGPML {
interaction
.
append
(
" <Interaction GraphId=\""
+
getNewId
()
+
"\">\n"
);
interaction
.
append
(
" <Interaction GraphId=\""
+
getNewId
()
+
"\">\n"
);
interaction
.
append
(
" <Attribute Key=\"org.pathvisio.core.ds\" Value=\"\"/>\n"
);
interaction
.
append
(
" <Attribute Key=\"org.pathvisio.core.ds\" Value=\"\"/>\n"
);
interaction
.
append
(
" <Attribute Key=\"org.pathvisio.core.id\" Value=\"\"/>\n"
);
interaction
.
append
(
" <Attribute Key=\"org.pathvisio.core.id\" Value=\"\"/>\n"
);
interaction
.
append
(
" <Graphics ConnectorType=\"Segmented\" ZOrder=\"32827\" LineThickness=\"1.0\">\n"
);
interaction
.
append
(
" <Graphics "
+
"ConnectorType=\"Segmented\" "
+
"ZOrder=\""
+
rn
.
getReaction
().
getZ
()
+
"\" "
+
"LineThickness=\""
+
rn
.
getLine
().
getWidth
()
+
"\">\n"
);
if
(
rn
instanceof
Reactant
)
{
if
(
rn
instanceof
Reactant
)
{
for
(
Point2D
p2d
:
line
.
getPoints
())
{
for
(
Point2D
p2d
:
line
.
getPoints
())
{
...
@@ -514,11 +517,10 @@ public class ModelToGPML {
...
@@ -514,11 +517,10 @@ public class ModelToGPML {
interactions
.
append
(
" <Interaction GraphId=\""
+
reaction
.
getIdReaction
()
+
"\">\n"
);
interactions
.
append
(
" <Interaction GraphId=\""
+
reaction
.
getIdReaction
()
+
"\">\n"
);
interactions
.
append
(
biopaxParser
.
toReferenceXml
(
reaction
.
getMiriamData
()));
interactions
.
append
(
biopaxParser
.
toReferenceXml
(
reaction
.
getMiriamData
()));
// interactions.append(" <Attribute Key=\"org.pathvisio.core.ds\"
interactions
.
append
(
" <Graphics "
// Value=\"\"/>\n");
+
"ConnectorType=\"Segmented\" "
// interactions.append(" <Attribute Key=\"org.pathvisio.core.id\"
+
"ZOrder=\""
+
reaction
.
getZ
()
+
"\" "
// Value=\"\"/>\n");
+
"LineThickness=\""
+
reaction
.
getLine
().
getWidth
()
+
"\">\n"
);
interactions
.
append
(
" <Graphics ConnectorType=\"Segmented\" ZOrder=\"32827\" LineThickness=\"1.0\">\n"
);
/** Start and End **/
/** Start and End **/
Reactant
start
=
reaction
.
getReactants
().
get
(
0
);
Reactant
start
=
reaction
.
getReactants
().
get
(
0
);
...
@@ -608,7 +610,7 @@ public class ModelToGPML {
...
@@ -608,7 +610,7 @@ public class ModelToGPML {
return
gpml
.
toString
();
return
gpml
.
toString
();
}
}
private
String
colorToString
(
Color
color
)
{
private
String
colorToString
(
Color
color
)
{
return
colorParser
.
colorToHtml
(
color
).
substring
(
1
);
return
colorParser
.
colorToHtml
(
color
).
substring
(
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