<?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: Bam to Fastq convert !]]></title>
	<link>https://bioinformaticsonline.com/snippets/view/43251/bam-to-fastq-convert?</link>
	<atom:link href="https://bioinformaticsonline.com/snippets/view/43251/bam-to-fastq-convert?" rel="self" type="application/rss+xml" />
	<description><![CDATA[]]></description>
	
	<item>
	<guid isPermaLink="true">https://bioinformaticsonline.com/snippets/view/43251/bam-to-fastq-convert</guid>
	<pubDate>Fri, 13 Aug 2021 03:51:18 -0500</pubDate>
	<link>https://bioinformaticsonline.com/snippets/view/43251/bam-to-fastq-convert</link>
	<title><![CDATA[Bam to Fastq convert !]]></title>
	<description><![CDATA[<code>#Long reads
bedtools bamtofastq -i input.bam -fq output.fastq

#For paired-end reads:

samtools sort -n input.bam -o input_sorted.bam   # sort reads by identifier-name (-n)

bedtools bamtofastq -i input_sorted.bam -fq output_r1.fastq -fq2 output_r2.fastq</code>]]></description>
	<dc:creator>Jit</dc:creator>
</item>

</channel>
</rss>