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

Out by one error in CigarArray constructor

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.10.1, 2.10.2, 2.10.2b1, 2.10.2b2
    • Fix Version/s: 2.10.3
    • Component/s: Datamodel
    • Labels:
      None

      Description

      The CigarArray constructor builds a CigarArray based on a selection group and a set of hidden columns: hidden columns within the bounds of the selection group are marked as D.

      However if the selection group starts at the same column as a hidden columns region ends i.e. overlap of 1 column, the CIGAR string is created as if the column were not hidden. E.g.
      selection group = [6,23]
      hidden columns = [3,6],[16,20]
      resulting CIGAR string: 10M5D3M (should be 1D9M5D3M)

      selection groups starting earlier give expected results of:
      selection group = [5,23] : CIGAR = 2D9M5D3M
      selection group = [4,23] : CIGAR = 3D9M5D3M
      selection group = [3,23] : CIGAR = 4D9M5D3M

        Attachments

          Activity

            People

            Assignee:
            kmourao Kira Mourão
            Reporter:
            kmourao Kira Mourão
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: