\r
if (sequence.length() > i)\r
{\r
- res = sequence.substring(i,i+1);\r
+ res = Character.toString(Character.toUpperCase(sequence.charAt(i)));\r
\r
if (jalview.util.Comparison.isGap(res.charAt(0)))\r
{\r
\r
for (j = 1; j <= len; j++)\r
{\r
- sqnum[j] = ((Integer) jalview.schemes.ResidueProperties.aaHash.get(new String(\r
- sq.substring(j - 1, j)))).intValue(); // yuk\r
+ sqnum[j] = ((Integer) jalview.schemes.ResidueProperties.aaHash.get(Character.toString(\r
+ sq.charAt(j - 1)))).intValue(); // yuk - JBPNote - case taken care of in aaHash\r
}\r
\r
seqNums.setElementAt(sqnum, i);\r
\r
if (sequence.length() > i)\r
{\r
- res = sequence.substring(i, i + 1);\r
+ res = Character.toString(Character.toUpperCase(sequence.charAt(i)));\r
\r
if (residueHash.containsKey(res))\r
{\r
continue;\r
}\r
\r
- c = ((Sequence) sequences.elementAt(i)).getCharAt(j);\r
+ c = ((Sequence) sequences.elementAt(i)).getCharAt(j); // gaps do not have upper/lower case\r
\r
if (jalview.util.Comparison.isGap((c)))\r
{\r
\r
if (i < s1.getSequence().length())\r
{\r
- chr1 = s1.getSequence().charAt(i);\r
+ chr1 = Character.toUpperCase(s1.getSequence().charAt(i));\r
}\r
else\r
{\r
\r
if (i < s2.getSequence().length())\r
{\r
- chr2 = s2.getSequence().charAt(i);\r
+ chr2 = Character.toUpperCase(s2.getSequence().charAt(i));\r
}\r
else\r
{\r
\r
if (i < s1.getSequence().length())\r
{\r
- chr1 = s1.getSequence().charAt(i);\r
+ chr1 = Character.toUpperCase(s1.getSequence().charAt(i));\r
}\r
else\r
{\r
\r
if (i < s2.getSequence().length())\r
{\r
- chr2 = s2.getSequence().charAt(i);\r
+ chr2 = Character.toUpperCase(s2.getSequence().charAt(i));\r
}\r
else\r
{\r