know the grep command for fastq file
3
0
Entering edit mode
5.4 years ago
harry ▴ 40

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.

RNA-Seq • 6.8k views
ADD COMMENT
0
Entering edit mode
ADD REPLY
0
Entering edit mode

brian, OP asks

i want to grep this sequence from my fastq file

ADD REPLY
0
Entering edit mode

SeqKit works with both fastq and fasta files.

ADD REPLY
5
Entering edit mode
5.4 years ago
JC 13k

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

ADD COMMENT
2
Entering edit mode
5.4 years ago
slapiiv ▴ 60
grep 'HISEQ:151:HHKH7BCXX:2:1203:18952:80029' your_fastq_file.fastq
ADD COMMENT
0
Entering edit mode
5.4 years ago
gsk1185 ▴ 20

grep -1 "HISEQ:151:HHKH7BCXX:2:1203:18952:80029" .fastq

ADD COMMENT
0
Entering edit mode

Hey gsk1185, thanks for contributing but please note that exactly this answer has already been given twice. There is no point in a third identical answer.

ADD REPLY

Login before adding your answer.

Traffic: 1996 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6