/**
* Returns the first mapping found which is to or from the given sequence, or
- * null.
+ * null if none is found
*
* @param seq
* @return
*/
- public Mapping getMappingForSequence(SequenceI seq, boolean cdsOnly)
+ public Mapping getMappingForSequence(SequenceI seq)
{
SequenceI seqDs = seq.getDatasetSequence();
seqDs = seqDs != null ? seqDs : seq;
{
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;