<?xml version='1.0'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:georss="http://www.georss.org/georss" xmlns:atom="http://www.w3.org/2005/Atom" >
<channel>
	<title><![CDATA[BOL: FASTQ to FASTA]]></title>
	<link>https://bioinformaticsonline.com/snippets/view/43692/fastq-to-fasta?</link>
	<atom:link href="https://bioinformaticsonline.com/snippets/view/43692/fastq-to-fasta?" rel="self" type="application/rss+xml" />
	<description><![CDATA[]]></description>
	
	<item>
	<guid isPermaLink="true">https://bioinformaticsonline.com/snippets/view/43692/fastq-to-fasta</guid>
	<pubDate>Thu, 06 Jan 2022 07:02:13 -0600</pubDate>
	<link>https://bioinformaticsonline.com/snippets/view/43692/fastq-to-fasta</link>
	<title><![CDATA[FASTQ to FASTA]]></title>
	<description><![CDATA[<code># bash
cat INFILE.fastq | paste - - - - |cut -f 1, 2| sed &#039;s/@/&gt;/&#039;g | tr -s &quot;/t&quot; &quot;/n&quot; &gt; OUTFILE.fasta

#awk
cat infile.fq | awk &#039;{if(NR%4==1) {printf(&quot;&gt;%s\n&quot;,substr($0,2));} else if(NR%4==2) print;}&#039; &gt; file.fa

#seqtk
seqtk seq -a input.fastq &gt; output.fasta

#Bioawk
bioawk -c fastx &#039;{print &quot;&gt;&quot;$name&quot;\n&quot;$seq}&#039; input.fastq &gt; output.fasta

#Sed
sed -n &#039;1~4s/^@/&gt;/p;2~4p&#039; INFILE.fastq &gt; OUTFILE.fasta</code>]]></description>
	<dc:creator>Jit</dc:creator>
</item>

</channel>
</rss>