git://source.jalview.org
/
jalview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
JAL-3490 merged with 2.11.2 develop
[jalview.git]
/
src
/
jalview
/
datamodel
/
SequenceFeature.java
diff --git
a/src/jalview/datamodel/SequenceFeature.java
b/src/jalview/datamodel/SequenceFeature.java
index
df268f8
..
6eeba2f
100755
(executable)
--- a/
src/jalview/datamodel/SequenceFeature.java
+++ b/
src/jalview/datamodel/SequenceFeature.java
@@
-608,6
+608,8
@@
public class SequenceFeature implements FeatureLocationI
sb.append(String.format(ROW_DATA, "Location", name,
begin == end ? begin
: begin + (isContactFeature() ? ":" : "-") + end));
sb.append(String.format(ROW_DATA, "Location", name,
begin == end ? begin
: begin + (isContactFeature() ? ":" : "-") + end));
+
+ String consequence = "";
if (mf != null)
{
int[] beginRange = mf.getMappedPositions(begin, begin);
if (mf != null)
{
int[] beginRange = mf.getMappedPositions(begin, begin);
@@
-619,8
+621,7
@@
public class SequenceFeature implements FeatureLocationI
: from + (isContactFeature() ? ":" : "-") + to));
if (mf.isFromCds())
{
: from + (isContactFeature() ? ":" : "-") + to));
if (mf.isFromCds())
{
- sb.append(String.format(ROW_DATA, "Consequence",
- mf.findProteinVariants(this), ""));
+ consequence = mf.findProteinVariants(this);
}
}
sb.append(String.format(ROW_DATA, "Type", type, ""));
}
}
sb.append(String.format(ROW_DATA, "Type", type, ""));
@@
-635,6
+636,12
@@
public class SequenceFeature implements FeatureLocationI
sb.append(String.format(ROW_DATA, "Group", featureGroup, ""));
}
sb.append(String.format(ROW_DATA, "Group", featureGroup, ""));
}
+ if (!consequence.isEmpty())
+ {
+ sb.append(String.format(ROW_DATA, "Consequence",
+ "<i>Translated by Jalview</i>", consequence));
+ }
+
if (otherDetails != null)
{
TreeMap<String, Object> ordered = new TreeMap<>(
if (otherDetails != null)
{
TreeMap<String, Object> ordered = new TreeMap<>(