know the grep command for fastq file
I have junction read sequence like this -HISEQ:151:HHKH7BCXX:2:1203:18952:80029 and i want to grep this sequence from my fastq file . so please tell me how i grep this sequence.
• 8,052 views
•
link
3 answers
if the file is decompressed: grep -A4 HISEQ:151:HHKH7BCXX:2:1203:18952:80029 file.fastq
if the file is compressed: zgrep -A4 HISEQ:151:HHKH7BCXX:2:1203:18952:80029 file.fastq.gz
man grep can explain to you how to use it
• 0 views
•
link
grep 'HISEQ:151:HHKH7BCXX:2:1203:18952:80029' your_fastq_file.fastq
• 0 views
•
link
grep -1 "HISEQ:151:HHKH7BCXX:2:1203:18952:80029" .fastq
• 0 views
•
link
Log in to answer this question.
See answer at Extract specific genes from a FASTA file.
brian, OP asks
SeqKit works with both fastq and fasta files.