* The number of families to read before saving.
* @throws IOException
*/
- public void runToEnd(boolean keepRawData, boolean forClans)
+ public void runToEnd(int minCount, int maxCount, boolean keepRawData,
+ boolean forClans)
throws IOException
{
keepRaw = keepRawData;
readHMM(inputHMM);
int count = countValidResidues();
- processData(count);
+ if (count >= minCount && count < maxCount)
+ {
+ processData(count);
+ }
filesRead++;
System.out.println(filesRead);
endReached = atEnd(inputSTO);
{
inputScanner.next();
+ int minCount = inputScanner.nextInt();
+ int maxCount = inputScanner.nextInt();
boolean keepRaw = inputScanner.nextBoolean();
boolean forClans = inputScanner.nextBoolean();
- analyser.runToEnd(keepRaw, forClans);
+ analyser.runToEnd(minCount, maxCount, keepRaw, forClans);
System.out.println("Task completed");
} catch (Exception e)
{