lh3 / seqtk

Toolkit for processing sequences in FASTA/Q formats
MIT License
1.35k stars 310 forks source link

seqtk subseq in.fq name.lst > out.fq didn't work #180

Closed li0604 closed 2 years ago

li0604 commented 2 years ago

Hi everyone,

WHen I use the command “seqtk subseq in.fq name.lst > out.fq”, there is no anything in the out.fq. The details showed as following:

other command line works. So I don't what's the reason about this problem.

Would you mind sharing your experience?

Thanks a lot.

li0604 commented 2 years ago

image

shenwei356 commented 2 years ago
cut -f 1 name.list > id.list

use id instead

lh3 commented 2 years ago

As @shenwei356 said, you need to provide a list of names. @ or 2:N:0:1 is not part of a name.

perl -ne 'print "$1\n" if /^@(\S+)/'
li0604 commented 2 years ago

Thanks a lot. @lh3 @shenwei356