X BOL wishing you a very and Happy New year

Alternative content

Our Sponsors



Download BioinformaticsOnline(BOL) Apps in your chrome browser.




Python script to read FASTA and FASTQ file !

  • Public
By LEGE 1212 days ago
# !/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