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

Consensus profile may include zero (rounded down) percentage values

    XMLWordPrintable

    Details

      Description

      Method AAFrequency.extractProfile() converts residue counts to percentages (rounded down to integer). This can result in zero values (e.g. count 1 out of total 101).
      In Java this is harmless: AnnotationRenderer.drawBarGraph() draws the character, shifts offset by its height (zero) and then draws the remaining profile residues over it. Just a bit of unnecessary processing (e.g. find residue colour).
      In JalviewJS the font scaling is done differently, there is a divide by zero - resulting in Infinity - and the profile fails to be drawn correctly or at all.

      Noticed while testing JalviewJS with a JPred result alignment of 450 sequences. This bug can't show up in an alignment of 100 sequences or less. Or should that be fewer.

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: