X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fschemes%2FConsensus.java;h=8aa59e3f4c4d75a6e7ddeb1c56c8593b6d2156db;hb=1698842ec6755d1995dae7c1a590efbfc8f6e4d5;hp=ac895bbb6f90f460037bc0940a152d73948ba59b;hpb=efc31b4a8d5cee63555586804a2b79c06bdb5a14;p=jalview.git diff --git a/src/jalview/schemes/Consensus.java b/src/jalview/schemes/Consensus.java index ac895bb..8aa59e3 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) 2007 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++; }