snapatac2.PyDNAMotifScanner.with_background#

PyDNAMotifScanner.with_background(seqs, pvalue=1e-05)#

Create a motif test object using background sequences.

This create a PyDNAMotifTest object which can be later used to test motif enrichment.

Parameters:
  • seqs (list[str]) – List of background DNA sequences.

  • pvalue (float) – P-value threshold for reporting motif occurrences. Default is 1e-5.

Returns:

A DNA motif test object.

Return type:

PyDNAMotifTest