biopython v1.71.0 Bio.Sequencing.Phd

Parser for PHD files output by PHRED and used by PHRAP and CONSED.

This module can be used directly which will return Record objects which should contain all the original data in the file.

Alternatively, using Bio.SeqIO with the “phd” format will call this module internally. This will give SeqRecord objects for each contig sequence.

Link to this section Summary

Functions

Iterates over a file returning multiple PHD records

Reads the next PHD record from the file, returning it as a Record object

Link to this section Functions

Iterates over a file returning multiple PHD records.

The data is read line by line from the handle. The handle can be a list of lines, an open file, or similar; the only requirement is that we can iterate over the handle to retrieve lines from it.

Typical usage::

records = parse(handle)
for record in records:

Reads the next PHD record from the file, returning it as a Record object.

This function reads PHD file data line by line from the handle, and returns a single Record object.