Can Anyone Help Me In Finding The Script That Convert .Fastq To .Fasta Format
4
1
Entering edit mode
13.2 years ago
Syed Imtiyaz ▴ 40

can anyone help me in finding the script that convert .fastq to .fasta format it would be help full if the script would be in perl scrpt or awk

conversion fastq fasta perl awk • 5.9k views
ADD COMMENT
0
Entering edit mode
ADD REPLY
3
Entering edit mode
13.2 years ago
Ttnguyen ▴ 70

How about this?

awk 'BEGIN {id=1; seq=2;} NR==id{ sub(/^@/,">",$0); print $0; id += 4;} NR==seq{ print $0; seq += 4}' FASTQ_FILE

ADD COMMENT
0
Entering edit mode

THANK YOU IT WORKS !!!!!!!!

ADD REPLY
2
Entering edit mode
ADD COMMENT
0
Entering edit mode

THANK YOU!!!!!!!!!!!!!

ADD REPLY
2
Entering edit mode
13.2 years ago
pmenzel ▴ 310

Just did this with fastq_to_fasta from the fastx package (http://hannonlab.cshl.edu/fastx_toolkit/)

ADD COMMENT
0
Entering edit mode

Thank YOU !!!!!!!!!!!

ADD REPLY
0
Entering edit mode
13.2 years ago
Wilber • 0

awk '/^@/{header=$0;getline;sequence=$0;gsub("@",">",header);printf "%sn%sn,header,sequence}' FAST-FILE

ADD COMMENT
0
Entering edit mode

THANK YOU!!!!!!!!!!!!!

ADD REPLY

Login before adding your answer.

Traffic: 2246 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