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-3878 Add char[] constructor to Sequence
[jalview.git]
/
src
/
jalview
/
datamodel
/
AlignedCodonFrame.java
diff --git
a/src/jalview/datamodel/AlignedCodonFrame.java
b/src/jalview/datamodel/AlignedCodonFrame.java
index
26f6e2a
..
fffa137
100644
(file)
--- a/
src/jalview/datamodel/AlignedCodonFrame.java
+++ b/
src/jalview/datamodel/AlignedCodonFrame.java
@@
-220,12
+220,12
@@
public class AlignedCodonFrame
/**
* Returns the first mapping found which is to or from the given sequence, or
/**
* Returns the first mapping found which is to or from the given sequence, or
- * null.
+ * null if none is found
*
* @param seq
* @return
*/
*
* @param seq
* @return
*/
- public Mapping getMappingForSequence(SequenceI seq, boolean cdsOnly)
+ public Mapping getMappingForSequence(SequenceI seq)
{
SequenceI seqDs = seq.getDatasetSequence();
seqDs = seqDs != null ? seqDs : seq;
{
SequenceI seqDs = seq.getDatasetSequence();
seqDs = seqDs != null ? seqDs : seq;
@@
-234,11
+234,7
@@
public class AlignedCodonFrame
{
if (ssm.fromSeq == seqDs || ssm.mapping.to == seqDs)
{
{
if (ssm.fromSeq == seqDs || ssm.mapping.to == seqDs)
{
- if (!cdsOnly || ssm.fromSeq.getName().startsWith("CDS")
- || ssm.mapping.to.getName().startsWith("CDS"))
- {
- return ssm.mapping;
- }
+ return ssm.mapping;
}
}
return null;
}
}
return null;