JAL-1065 per sequence and per-alignment scores added to annotation
authorjprocter <jprocter@compbio.dundee.ac.uk>
Thu, 24 May 2012 17:52:03 +0000 (18:52 +0100)
committerjprocter <jprocter@compbio.dundee.ac.uk>
Thu, 24 May 2012 17:52:03 +0000 (18:52 +0100)
src/jalview/io/TCoffeeScoreFile.java

index 0da4628..cf33671 100644 (file)
@@ -490,6 +490,7 @@ public class TCoffeeScoreFile extends AlignFile {
              aa.annotations=annotations;
              aa.visible=false;
              aa.belowAlignment=false;
+             aa.setScore(header.getScoreFor(id.getKey()));
               aa.createSequenceMapping(s, s.getStart(),true);
               s.addAlignmentAnnotation(aa);
               aa.adjustForAlignment();
@@ -500,11 +501,13 @@ public class TCoffeeScoreFile extends AlignFile {
              aa.annotations=annotations;
               aa.belowAlignment=true;
              aa.visible=true;
+             aa.setScore(header.getScoreAvg());
            }
            aa.showAllColLabels=true;
            aa.validateRangeAndDisplay();
            added=true;
          }
+         
          return added;
        }