Bio.motifs.clusterbuster module

Parse Cluster Buster position frequency matrix files.

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

Bases: list

Class to store the information in a Cluster Buster 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.clusterbuster.read(handle)

Read motifs in Cluster Buster position frequency matrix format from a file handle.

Cluster Buster motif format: https://bu.wenglab.org/cluster-buster/help/cis-format.html

Bio.motifs.clusterbuster.write(motifs, precision=0)

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

By default (precision=0) Cluster Buster position frequency matrices will be written with integer values. If a higher precision value is set, Cluster Buster position frequency matrices will be written as floats with x decimal places.