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-2154 don’t add any remaining xrefed sequences of the wrong molecule type to the...
[jalview.git]
/
src
/
jalview
/
analysis
/
AlignmentUtils.java
diff --git
a/src/jalview/analysis/AlignmentUtils.java
b/src/jalview/analysis/AlignmentUtils.java
index
cc80384
..
e0ec22b
100644
(file)
--- a/
src/jalview/analysis/AlignmentUtils.java
+++ b/
src/jalview/analysis/AlignmentUtils.java
@@
-2596,7
+2596,7
@@
public class AlignmentUtils
{
AlignmentI copy = new Alignment(new Alignment(seqs));
copy.setDataset(dataset);
{
AlignmentI copy = new Alignment(new Alignment(seqs));
copy.setDataset(dataset);
-
+ boolean isProtein = !copy.isNucleotide();
SequenceIdMatcher matcher = new SequenceIdMatcher(seqs);
if (xrefs != null)
{
SequenceIdMatcher matcher = new SequenceIdMatcher(seqs);
if (xrefs != null)
{
@@
-2607,7
+2607,8
@@
public class AlignmentUtils
{
for (DBRefEntry dbref : dbrefs)
{
{
for (DBRefEntry dbref : dbrefs)
{
- if (dbref.getMap() == null || dbref.getMap().getTo() == null)
+ if (dbref.getMap() == null || dbref.getMap().getTo() == null
+ || dbref.getMap().getTo().isProtein() != isProtein)
{
continue;
}
{
continue;
}