Bio.motifs.pfm module

Parse various position frequency matrix format files.

class Bio.motifs.pfm.Record(iterable=(), /)

Bases: list

Class to store the information in a position frequency matrix table.

The record inherits from a list containing the individual motifs.

__str__()

Return a string representation of the motifs in the Record object.

Bio.motifs.pfm.read(handle, pfm_format)

Read motif(s) from a file in various position frequency matrix formats.

Return the record of PFM(s). Call the appropriate routine based on the format passed.

Bio.motifs.pfm.write(motifs)

Return the representation of motifs in Cluster Buster position frequency matrix format.