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

Sequence.deleteChars (including gaps) makes incorrect new dataset sequence

    XMLWordPrintable

    Details

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

      Description

      Sequence.deleteChars only creates a new dataset sequence if the deletion is 'internal' i.e. doesn't start at the beginning, or end at the end, of the sequence.
      However in this case, the same number of characters are deleted from the dataset sequence, as from the aligned sequence.
      This is incorrect if the deleted region includes gaps.
      Import from Textbox
      >seq
      AB---CDEFGHIJK
      and Cut B---C
      The resulting dataset sequence should be ADEFG... but inspection in the debugger shows it is AGHIJ...

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: