queryEnd = Integer.parseInt(tokens[queryEndIdx]);
}
catch (NumberFormatException ne) {
throw new RuntimeException("Non-numeric value found in either start or end column");
}
Strand queryStrand = Strand.NONE;
if (!tabblastn) {
int str = Integer.parseInt(tokens[queryStrandIdx]);
queryStrand = str == 1 ? Strand.POSITIVE : Strand.NEGATIVE;
}
String subjectChr = tokens[subjectChrIdx];
int subjectStart;
int subjectEnd;
try {
subjectStart = Integer.parseInt(tokens[subjectStartIdx]);
subjectEnd = Integer.parseInt(tokens[subjectEndIdx]);
}
catch (NumberFormatException ne) {
throw new RuntimeException("Non-numeric value found in " +
" either subject start or end column");
}
Strand subjectStrand = Strand.NONE;
if (!tabblastn) {
try {
int str = Integer.parseInt(tokens[subjectStrandIdx]);
subjectStrand = str == 1 ? Strand.POSITIVE : Strand.NEGATIVE;
}