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

Refactor mapping for sequence <-> (PDB resnum <-> PDB atom position)

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.10.0
    • Component/s: None
    • Labels:
      None

      Description

      Currently this mapping done using a two dimensional int array. Using a two dimensional array for this type of mapping introduces a lot of unnecessary redundancy and doesn't capture some corner case.

      I propose we use a HashMap <Integer, int[]> where the hash key is the residue index and the value is an int array containing the PDB resnum index, and PDB atom position for the given residue.

      This model will not only eliminate the unnecessary redundancies, but will equally capture most corner cases more accurately and increase performance (HashMap performs better than Arrays).

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              tcnofoegbu Tochukwu Charles N Ofoegbu
              Reporter:
              tcnofoegbu Tochukwu Charles N Ofoegbu
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: