+ if (k == null)
+ {
+ k = new String[] { fsq.getId(), "JNet Output" };
+ }
+ if (fsq.getId().startsWith("JNETSOL"))
+ {
+ char amnt = (fsq.getId().endsWith("25") ? "3" : fsq.getId()
+ .endsWith("5") ? "6" : "9").charAt(0);
+ char[] vseq = fsq.getSequence().toCharArray();
+ for (int spos = 0, sposL = fsq.getLength(); spos < sposL; spos++)
+ {
+ if (firstsol)
+ {
+ sol[spos] = '0';
+ }
+ if (vseq[spos] == 'B'
+ && (sol[spos] == '0' || sol[spos] < amnt))
+ {
+ sol[spos] = amnt;
+ }
+ }
+ firstsol = false;
+ }
+ else