Closed deprekate closed 4 years ago
I think this is just a misunderstanding of the documentation, which states that only one file is expected:
$ seqtk seq
Usage: seqtk seq [options] <in.fq>|<in.fa>
Usually, multiple input files would be indicated with something like [in.fa]...
in a manual.
If you know how to read C code, you can see that where seqtk seq
processes the input, it only grabs the first non-option argument (or opens stdin) and gzopen()
s (or gzdopen()
s) that: https://github.com/lh3/seqtk/blob/ca4785c620d34cf5934b89ae8e00f6dc71a5bf1e/seqtk.c#L1243
The reason why the cat
works is because cat
will concatenate the contents of all of its arguments, the result is still a valid FASTA file, and seqtk will read that input as if it were one file coming in on stdin.
@deprekate can you close this issue now please?
This is more of unexpected behavior than a bug of seqtk itself. When a file list expansion is given to seqtk, only the first file is processed.
If the output is instead piped to seqtk through stdin, though it works fine.