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

remove redundancy fails if sequences include gap characters and are not padded to the same length

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.10.0b1
    • Fix Version/s: None
    • Component/s: analysis
    • Labels:
      None
    • Environment:
      Jalview Version: 2.10.0b1
      Jalview Installation: installAnywhere git-commit:37de931 [releases/Release_2_10_0_Branch]
      Build Date: 25 October 2016
      Java version: 1.8.0_05
      x86_64 Mac OS X 10.10.5

      Description

      So far only reproduced with the pconsC3 server's example sequence's hhblits a3m result (attached and also at http://c3.pcons.net/pred/result/example/).
      1. ensure 'pad gaps' not enabled by default.
      2. import attached file
      3. Select Edit->Remove Redundancy
      [ wait a bit, there are lots of sequences ]
      4. Sequences will be highlighted for removal. Hit 'Remove'

      normally, this works, but nothing appears to happen. The console reveals:

      Exception in thread "AWT-EventQueue-0" java.lang.ArrayIndexOutOfBoundsException: 126
      at jalview.datamodel.Sequence.deleteChars(Sequence.java:838)
      at jalview.commands.EditCommand.cut(EditCommand.java:539)
      at jalview.commands.EditCommand.performEdit(EditCommand.java:405)
      at jalview.commands.EditCommand.performEdit(EditCommand.java:384)
      at jalview.commands.EditCommand.<init>(EditCommand.java:139)
      at jalview.gui.RedundancyPanel.applyButton_actionPerformed(RedundancyPanel.java:244)
      at jalview.jbgui.GSliderPanel$3.actionPerformed(GSliderPanel.java:139)
      at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022)
      at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2346)
      at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
      at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
      at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252)
      at java.awt.Component.processMouseEvent(Component.java:6527)
      at javax.swing.JComponent.processMouseEvent(JComponent.java:3321)
      at java.awt.Component.processEvent(Component.java:6292)
      at java.awt.Container.processEvent(Container.java:2234)
      at java.awt.Component.dispatchEventImpl(Component.java:4883)
      at java.awt.Container.dispatchEventImpl(Container.java:2292)
      at java.awt.Component.dispatchEvent(Component.java:4705)
      at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4898)
      at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4533)
      at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4462)
      at java.awt.Container.dispatchEventImpl(Container.java:2278)
      at java.awt.Window.dispatchEventImpl(Window.java:2739)
      at java.awt.Component.dispatchEvent(Component.java:4705)
      at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:746)
      at java.awt.EventQueue.access$400(EventQueue.java:97)
      at java.awt.EventQueue$3.run(EventQueue.java:697)
      at java.awt.EventQueue$3.run(EventQueue.java:691)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)
      at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:86)
      at java.awt.EventQueue$4.run(EventQueue.java:719)
      at java.awt.EventQueue$4.run(EventQueue.java:717)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)
      at java.awt.EventQueue.dispatchEvent(EventQueue.java:716)
      at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
      at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
      at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
      at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
      at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
      at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jprocter James Procter
              Reporter:
              jprocter James Procter
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated: