Uploaded image for project: 'Jalview'
  1. Jalview
  2. JAL-2986

Sequence.findIndex wrong when 'end' > sequence length

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.10.4
    • Fix Version/s: 2.11.0
    • Component/s: Datamodel
    • Labels:
      None

      Description

      A sequence can declare a length (end position) greater than the subsequence e.g.
      >seq1/1-10
      L-RF-GQ--
      Prior to the introduction of SequenceCursor, findIndex(int resNo) would return the last column position (gapped or not) if resNo is beyond the last residue position:
      findIndex(6) = 9
      With SequenceCursor, we get instead
      findIndex(6) = 10

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              gmungoc Mungo Carstairs
              Reporter:
              gmungoc Mungo Carstairs
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: