Sequence currSeq(in);
name = currSeq.getName();
- //if this name is in the accnos file
- if (names.count(name) == 1) {
- wroteSomething = true;
-
- currSeq.printSequence(out);
-
- names.erase(name);
+ if (name != "") {
+ //if this name is in the accnos file
+ if (names.count(name) == 1) {
+ wroteSomething = true;
+
+ currSeq.printSequence(out);
+
+ names.erase(name);
+ }
}
-
gobble(in);
}
in.close();