<?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: Python script to read FASTA and FASTQ file  !]]></title>
	<link>https://bioinformaticsonline.com/snippets/view/43345/python-script-to-read-fasta-and-fastq-file?</link>
	<atom:link href="https://bioinformaticsonline.com/snippets/view/43345/python-script-to-read-fasta-and-fastq-file?" rel="self" type="application/rss+xml" />
	<description><![CDATA[]]></description>
	
	<item>
	<guid isPermaLink="true">https://bioinformaticsonline.com/snippets/view/43345/python-script-to-read-fasta-and-fastq-file</guid>
	<pubDate>Thu, 02 Sep 2021 02:01:39 -0500</pubDate>
	<link>https://bioinformaticsonline.com/snippets/view/43345/python-script-to-read-fasta-and-fastq-file</link>
	<title><![CDATA[Python script to read FASTA and FASTQ file  !]]></title>
	<description><![CDATA[<code># !/usr/bin/env python3
 
# -*- coding: utf-8 -*-
 
from pysam import FastxFile
 
 
def read_fasta_q_file(fasta_q_file):
    &quot;&quot;&quot;Parse FASTA/Q file using `pysam.FastxFile`.
 
    Args:
 
        fasta_q_file (str): Path to FASTA/Q file.
 
    &quot;&quot;&quot;
    with FastxFile(fasta_q_file) as fh:
        for entry in fh:
            sequence_id = entry.name
            sequence = entry.sequence</code>]]></description>
	<dc:creator>LEGE</dc:creator>
</item>

</channel>
</rss>