Hashtable residueHash;
int maxCount, nongap, i, j, v, jSize = sequences.length;
String maxResidue;
- char c;
+ char c='-';
float percentage;
int[] values = new int[255];
maxResidue = "";
nongap = 0;
values = new int[255];
-
+
for (j = 0; j < jSize; j++)
{
if (sequences[j] == null)
values['-']++;
}
}
-
- for (v = 'A'; v < 'Z'; v++)
+ if (jSize==1)
+ {
+ maxResidue = String.valueOf(c);
+ maxCount=1;
+ } else {for (v = 'A'; v < 'Z'; v++)
{
if (values[v] < 2 || values[v] < maxCount)
{
}
maxCount = values[v];
}
-
+ }
if (maxResidue.length() == 0)
{
maxResidue = "-";