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
8c6d4271
Commit
8c6d4271
authored
6 years ago
by
Piotr Gawron
Browse files
Options
Downloads
Patches
Plain Diff
variable name refactored
parent
ec56cb96
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!630
WIP: Resolve "The privileges of a new user are not saved in some cases"
,
!545
Import from sbgn issue
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
converter-SBGNML/src/main/java/lcsb/mapviewer/converter/model/sbgnml/SbgnmlXmlExporter.java
+14
-14
14 additions, 14 deletions
...b/mapviewer/converter/model/sbgnml/SbgnmlXmlExporter.java
with
14 additions
and
14 deletions
converter-SBGNML/src/main/java/lcsb/mapviewer/converter/model/sbgnml/SbgnmlXmlExporter.java
+
14
−
14
View file @
8c6d4271
...
...
@@ -469,32 +469,32 @@ public class SbgnmlXmlExporter {
* Returns glyph with unit of information extracted from the alias or null if no
* unit of information was found.
*
* @param
alias
* @param
element
* input alias
* @return glyph with unit of information extracted from the alias or null if no
* unit of information was found
*/
private
Glyph
getUnitOfInformationGlyph
(
Element
alias
)
{
private
Glyph
getUnitOfInformationGlyph
(
Element
element
)
{
Glyph
uoiGlyph
=
null
;
String
uoiText
=
""
;
if
(
alias
instanceof
Species
)
{
Species
species
=
(
Species
)
alias
;
if
(
element
instanceof
Species
)
{
Species
species
=
(
Species
)
element
;
int
homodir
=
species
.
getHomodimer
();
if
(
homodir
>
1
)
{
uoiText
=
"N:"
.
concat
(
Integer
.
toString
(
homodir
));
}
}
if
(
alias
instanceof
TruncatedProtein
)
{
if
(
element
instanceof
TruncatedProtein
)
{
if
(!
uoiText
.
equals
(
""
))
{
uoiText
=
uoiText
.
concat
(
"; "
);
}
uoiText
=
uoiText
.
concat
(
"ct:truncatedProtein"
);
}
if
(
alias
instanceof
Species
)
{
Species
speciesAlias
=
(
Species
)
alias
;
if
(
element
instanceof
Species
)
{
Species
speciesAlias
=
(
Species
)
element
;
if
((
speciesAlias
.
getStateLabel
()
!=
null
)
&&
(
speciesAlias
.
getStatePrefix
()
!=
null
))
{
if
(!
uoiText
.
equals
(
""
))
{
uoiText
=
uoiText
.
concat
(
"; "
);
...
...
@@ -507,19 +507,19 @@ public class SbgnmlXmlExporter {
}
if
(!
uoiText
.
contains
(
"ct:"
))
{
if
(
alias
instanceof
Rna
)
{
if
(
element
instanceof
Rna
)
{
if
(!
uoiText
.
equals
(
""
))
{
uoiText
=
uoiText
.
concat
(
"; "
);
}
uoiText
=
uoiText
.
concat
(
"ct:RNA"
);
}
if
(
alias
instanceof
AntisenseRna
)
{
if
(
element
instanceof
AntisenseRna
)
{
if
(!
uoiText
.
equals
(
""
))
{
uoiText
=
uoiText
.
concat
(
"; "
);
}
uoiText
=
uoiText
.
concat
(
"ct:antisenseRNA"
);
}
if
(
alias
instanceof
Gene
)
{
if
(
element
instanceof
Gene
)
{
if
(!
uoiText
.
equals
(
""
))
{
uoiText
=
uoiText
.
concat
(
"; "
);
}
...
...
@@ -530,17 +530,17 @@ public class SbgnmlXmlExporter {
if
(!
uoiText
.
equals
(
""
))
{
uoiGlyph
=
new
Glyph
();
uoiGlyph
.
setClazz
(
GlyphClazz
.
UNIT_OF_INFORMATION
.
getClazz
());
uoiGlyph
.
setId
(
alias
.
getElementId
().
concat
(
"uoi"
));
uoiGlyph
.
setId
(
element
.
getElementId
().
concat
(
"uoi"
));
Label
label
=
new
Label
();
label
.
setText
(
uoiText
);
uoiGlyph
.
setLabel
(
label
);
Bbox
bbox
=
new
Bbox
();
bbox
.
setX
((
float
)
(
alias
.
getX
()
+
UNIT_OF_INFORMATION_MARGIN
));
bbox
.
setY
((
float
)
(
alias
.
getY
()
-
UNIT_OF_INFORMATION_HEIGHT
/
2
));
bbox
.
setX
((
float
)
(
element
.
getX
()
+
UNIT_OF_INFORMATION_MARGIN
));
bbox
.
setY
((
float
)
(
element
.
getY
()
-
UNIT_OF_INFORMATION_HEIGHT
/
2
));
bbox
.
setH
((
float
)
UNIT_OF_INFORMATION_HEIGHT
);
bbox
.
setW
((
float
)
(
alias
.
getWidth
()
-
2
*
UNIT_OF_INFORMATION_MARGIN
));
bbox
.
setW
((
float
)
(
element
.
getWidth
()
-
2
*
UNIT_OF_INFORMATION_MARGIN
));
uoiGlyph
.
setBbox
(
bbox
);
}
...
...
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