# !/usr/bin/env python3
# -*- coding: utf-8 -*-
from pysam import FastxFile
def read_fasta_q_file(fasta_q_file):
"""Parse FASTA/Q file using `pysam.FastxFile`.
Args:
fasta_q_file (str): Path to FASTA/Q file.
"""
with FastxFile(fasta_q_file) as fh:
for entry in fh:
sequence_id = entry.name
sequence = entry.sequence