cEnd = seq[bpEnd];
if (checkBpType(c, cEnd))
{
- values['H']++; // H means it's a helix (structured)
+ values['(']++; // H means it's a helix (structured)
}
pairs[c][cEnd]++;
- maxResidue = "H";
+ maxResidue = "(";
}
}
// nonGap++;
residueHash.put(PAIRPROFILE, pairs);
}
- count = values['H'];
+ count = values['('];
residueHash.put(MAXCOUNT, new Integer(count));
residueHash.put(MAXRESIDUE, maxResidue);
result[i] = residueHash;
}
if (bpEnd > 0)
- {
+ {
+ values[')']=values['('];
+ values['(']=0;
+
+ residueHash = new Hashtable();
+ maxResidue = ")";
+
+ if (profile)
+ {
+ residueHash.put(PROFILE, new int[][]
+ { values, new int[]
+ { jSize, (jSize - values['-']) } });
+
+ residueHash.put(PAIRPROFILE, pairs);
+ }
+
+ residueHash.put(MAXCOUNT, new Integer(count));
+ residueHash.put(MAXRESIDUE, maxResidue);
+
+ percentage = ((float) count * 100) / (float) jSize;
+ residueHash.put(PID_GAPS, new Float(percentage));
+
+
result[bpEnd] = residueHash;
}
}