snapatac2.datasets.cis_bp#

snapatac2.datasets.cis_bp(unique=True)[source]#

Fetch CIS-BP transcription factor motifs for motif analysis.

Use these motifs from [Weirauch14] to scan genomic sequences or run motif enrichment. When unique=True, this function keeps only the highest information-content motif for each transcription factor name.

Anti-Patterns#

  • Do NOT set unique=False when downstream code expects one motif per transcription factor; CIS-BP can contain multiple motifs per factor.

param unique:

If True, return one motif per transcription factor by selecting the motif with the highest information content. If False, return all CIS-BP motifs.

type unique:

bool

returns:

Motif objects with name set to the transcription factor name parsed from the motif identifier.

rtype:

list[PyDNAMotif]

See also

motif_enrichment

compute motif enrichment.

Examples

>>> import snapatac2 as snap
>>> motifs = snap.datasets.cis_bp(unique=True)
>>> len(motifs) > 0
True