Skip to content

Commit df19f2e

Browse files
committedMar 26, 2025
Fix an issue causing k2mask to read only from stdin
1 parent 98bba3b commit df19f2e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed
 

‎src/k2mask.cc

+1-2
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,6 @@ int main(int argc, char **argv) {
348348
std::cerr << prog << ": reads from stdin and writes to stdout" << std::endl;
349349
usage(prog);
350350
}
351-
gzistream is(infile.c_str());
352351
auto outputFileMode = std::ios::out | std::ios::trunc;
353352
std::ofstream out(outfile, outputFileMode);
354353
std::vector<SDust *> sds(threads);
@@ -357,7 +356,7 @@ int main(int argc, char **argv) {
357356
}
358357
thread_pool pool(threads - 1);
359358
std::queue<std::future<SDust *>> tasks;
360-
BatchSequenceReader reader;
359+
BatchSequenceReader reader(infile.c_str());
361360
for (SDust *sd = sds.back(); reader.NextSequence(sd->seq); sd = sds.back()) {
362361
sds.pop_back();
363362
if (threads > 1) {

0 commit comments

Comments
 (0)
Please sign in to comment.