X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Fjalview%2Fschemes%2FConsensus.java;h=520196f532f20b7e130bb938eb93950b0185964a;hb=1b1a1007c534a02fdbae76df0c084f215c7c4c21;hp=ac895bbb6f90f460037bc0940a152d73948ba59b;hpb=efc31b4a8d5cee63555586804a2b79c06bdb5a14;p=jalview.git diff --git a/src/jalview/schemes/Consensus.java b/src/jalview/schemes/Consensus.java index ac895bb..520196f 100755 --- a/src/jalview/schemes/Consensus.java +++ b/src/jalview/schemes/Consensus.java @@ -1,6 +1,6 @@ /* * Jalview - A Sequence Alignment Editor and Viewer - * Copyright (C) 2005 AM Waterhouse, J Procter, G Barton, M Clamp, S Searle + * Copyright (C) 2006 AM Waterhouse, J Procter, G Barton, M Clamp, S Searle * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License @@ -70,8 +70,7 @@ public class Consensus while (i < s.length()) { - out[i] = ( (Integer) ResidueProperties.aaHash.get(s.substring(i, - i + 1))).intValue(); + out[i] = ResidueProperties.aaIndex[s.charAt(i)]; i++; }