X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fschemes%2FResidueProperties.java;h=a2778680305639b16ca5c8c8959c46c4c6d246d7;hb=1f0b5199b023c8ef6d25bb2ceed4fbaa83db9d92;hp=98be0c8a367b1db8be52f7d40f7faa759e8fb500;hpb=27b77d2219147d3741d4af7377e13918a8ae972a;p=jalview.git diff --git a/src/jalview/schemes/ResidueProperties.java b/src/jalview/schemes/ResidueProperties.java index 98be0c8..a277868 100755 --- a/src/jalview/schemes/ResidueProperties.java +++ b/src/jalview/schemes/ResidueProperties.java @@ -1420,6 +1420,41 @@ public class ResidueProperties } static { + int[][][] propMatrix = new int[3][maxProteinIndex][maxProteinIndex]; + for (int i=0;i en= (Enumeration)propHash.keys(); en.hasMoreElements(); ) + { + String ph = en.nextElement(); + Map pph=(Map)propHash.get(ph); + propMatrix[0][i][j]+= pph.get(ic).equals(pph.get(jc)) ? pph.get(ic) : -1; + propMatrix[1][i][j]+= pph.get(ic).equals(pph.get(jc)) ? 1 : -1; + propMatrix[2][i][j]+= pph.get(ic).equals(pph.get(jc)) ? pph.get(ic)*2 : 0; + } + } + } + + scoreMatrices.put("Conservation Pos", new ScoreMatrix("Conservation Pos",propMatrix[0],0)); + scoreMatrices.put("Conservation Both", new ScoreMatrix("Conservation Both",propMatrix[1],0)); + scoreMatrices.put("Conservation EnhPos", new ScoreMatrix("Conservation EnhPos",propMatrix[2],0)); scoreMatrices.put("PID", new PIDScoreModel()); }