sg.sequences, sg.getStartRes(),\r
sg.getEndRes());\r
c.calculate();\r
- c.verdict(false, 100);\r
+ c.verdict(false, viewport.ConsPercGaps);\r
ConservationColourScheme ccs = new ConservationColourScheme(c, sg.cs);\r
\r
sg.cs = ccs;\r
al.getWidth());\r
\r
c.calculate();\r
- c.verdict(false, 100);\r
+ c.verdict(false, viewport.ConsPercGaps);\r
\r
ccs = new ConservationColourScheme(c, cs);\r
\r
AlignmentAnnotation conservation;\r
AlignmentAnnotation quality;\r
\r
+ public int ConsPercGaps = 25; // JBPNote : This should be a scalable property!\r
+\r
public void updateConservation()\r
{\r
- int percGaps = 100; // JBPNote : This should be a scalable property!\r
Conservation cons = new jalview.analysis.Conservation("All",\r
jalview.schemes.ResidueProperties.propHash, 1,\r
alignment.getSequences(), 0,\r
alignment.getWidth());\r
cons.calculate();\r
- cons.verdict(false, percGaps);\r
+ cons.verdict(false, ConsPercGaps);\r
cons.findQuality();\r
int alWidth = alignment.getWidth();\r
Annotation [] annotations = new Annotation[alWidth];\r
value = ((Double) cons.quality.get(i)).floatValue();\r
vprop = value - qmin;\r
vprop/=qmax;\r
- qannotations[i] = new Annotation(sequence.charAt(i) + "",\r
- new String().valueOf(value), ' ', value, new Color(minR+maxR*vprop, minG+maxG*vprop, minB+maxB*vprop));\r
+ qannotations[i] = new Annotation(" ",\r
+ String.valueOf(value), ' ', value, new Color(minR+maxR*vprop, minG+maxG*vprop, minB+maxB*vprop));\r
}\r
\r
if(conservation==null)\r
{\r
conservation = new AlignmentAnnotation("Conservation",\r
- "Conservation of total alignment less than "+percGaps+"% gaps",\r
+ "Conservation of total alignment less than "+ConsPercGaps+"% gaps",\r
annotations,\r
0f, // cons.qualityRange[0].floatValue(),\r
11f, // cons.qualityRange[1].floatValue()\r