Question: Import the quality scores from a FASTQ file in Python 3 Biopython
2.9 years ago by
cristian • 240
cristian • 240 wrote:
I would like to import the FASTQ scores in Python. I have figured the 'seq' attribute from the records in a FASTQ object but does anybody know how to extract the quality score as well, please?
from Bio import SeqIO records = SeqIO.parse("assembly.fastq", "fastq") for i, record in enumerate(records): if i == 1: print(record.seq) break
ADD COMMENT • link •