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-3763 test coverage for AlignedCodonFrame.markMappedRegion
[jalview.git]
/
src
/
jalview
/
datamodel
/
AlignedCodonFrame.java
diff --git
a/src/jalview/datamodel/AlignedCodonFrame.java
b/src/jalview/datamodel/AlignedCodonFrame.java
index
6e83fbb
..
049a5f4
100644
(file)
--- a/
src/jalview/datamodel/AlignedCodonFrame.java
+++ b/
src/jalview/datamodel/AlignedCodonFrame.java
@@
-433,7
+433,8
@@
public class AlignedCodonFrame
/**
* Add search results for regions in other sequences that translate or are
/**
* Add search results for regions in other sequences that translate or are
- * translated from a particular position in seq
+ * translated from a particular position in seq (which may be an aligned or
+ * dataset sequence)
*
* @param seq
* @param index
*
* @param seq
* @param index
@@
-445,6
+446,10
@@
public class AlignedCodonFrame
SearchResultsI results)
{
SequenceI ds = seq.getDatasetSequence();
SearchResultsI results)
{
SequenceI ds = seq.getDatasetSequence();
+ if (ds == null)
+ {
+ ds = seq;
+ }
for (SequenceToSequenceMapping ssm : mappings)
{
ssm.markMappedRegion(ds, index, results);
for (SequenceToSequenceMapping ssm : mappings)
{
ssm.markMappedRegion(ds, index, results);