+ //reset child's filter counts to 0;
+ F.a.clear(); F.a.resize(alignmentLength, 0);
+ F.t.clear(); F.t.resize(alignmentLength, 0);
+ F.g.clear(); F.g.resize(alignmentLength, 0);
+ F.c.clear(); F.c.resize(alignmentLength, 0);
+ F.gap.clear(); F.gap.resize(alignmentLength, 0);
+
+ num = driverCreateFilter(F, filename, lines[process]);
+
+ //write out filter counts to file
+ filename += toString(getpid()) + "filterValues.temp";
+ ofstream out;
+ m->openOutputFile(filename, out);
+
+ out << num << endl;
+ out << F.getFilter() << endl;
+ for (int k = 0; k < alignmentLength; k++) { out << F.a[k] << '\t'; } out << endl;
+ for (int k = 0; k < alignmentLength; k++) { out << F.t[k] << '\t'; } out << endl;
+ for (int k = 0; k < alignmentLength; k++) { out << F.g[k] << '\t'; } out << endl;
+ for (int k = 0; k < alignmentLength; k++) { out << F.c[k] << '\t'; } out << endl;
+ for (int k = 0; k < alignmentLength; k++) { out << F.gap[k] << '\t'; } out << endl;
+
+ //cout << F.getFilter() << endl;
+ out.close();
+