Details
- 
    Type:Bug 
- 
    Status: Closed
- 
    Priority:Major 
- 
    Resolution: Fixed
- 
    Affects Version/s: None
- 
    Fix Version/s: 2.11.5.0
- 
    Component/s: Structures
- 
    Labels:None
Description
                    Jalview can fail to properly import and map a structure to a sequence that was entered manually via 'specify PDB ID'.. and doesn't warn the user that something went wrong, just shows the structure without creating a mapping.
Originally noted as: Cannot map 7zbc to its Uniprot sequence OPSD_MACFA - ArrayIndexOutOfBoundsException
Attempting to (manually load) PDB 7zbc for Uniprot sequence OPSD_MACFA results in the structure being shown but with no mapping to the alignment created, just an exception on the console:
java.lang.ArrayIndexOutOfBoundsException: Index 39 out of bounds for length 39
at jalview.util.MapList.<init>(MapList.java:238)
at jalview.analysis.AlignSeq.getMappingFromS1(AlignSeq.java:1173)
at jalview.structure.StructureSelectionManager.computeMapping(StructureSelectionManager.java:613)
at jalview.structure.StructureSelectionManager.setMapping(StructureSelectionManager.java:334)
at jalview.ext.jmol.JalviewJmolBinding.notifyFileLoaded(JalviewJmolBinding.java:821)
at jalview.ext.jmol.JalviewJmolBinding.processCallback(JalviewJmolBinding.java:615)
at jalview.ext.jmol.JalviewJmolBinding$1.run(JalviewJmolBinding.java:597)
            
Originally noted as: Cannot map 7zbc to its Uniprot sequence OPSD_MACFA - ArrayIndexOutOfBoundsException
Attempting to (manually load) PDB 7zbc for Uniprot sequence OPSD_MACFA results in the structure being shown but with no mapping to the alignment created, just an exception on the console:
java.lang.ArrayIndexOutOfBoundsException: Index 39 out of bounds for length 39
at jalview.util.MapList.<init>(MapList.java:238)
at jalview.analysis.AlignSeq.getMappingFromS1(AlignSeq.java:1173)
at jalview.structure.StructureSelectionManager.computeMapping(StructureSelectionManager.java:613)
at jalview.structure.StructureSelectionManager.setMapping(StructureSelectionManager.java:334)
at jalview.ext.jmol.JalviewJmolBinding.notifyFileLoaded(JalviewJmolBinding.java:821)
at jalview.ext.jmol.JalviewJmolBinding.processCallback(JalviewJmolBinding.java:615)
at jalview.ext.jmol.JalviewJmolBinding$1.run(JalviewJmolBinding.java:597)
 
        