snapatac2.PyDNAMotifTest.test#

PyDNAMotifTest.test(seqs)#

Test motif enrichment in the given sequences.

Use this method to compare target sequence motif occurrence against the background occurrence rate stored in this test object.

Anti-Patterns#

  • Do NOT pass an empty target list.

  • Do NOT reuse a background built with a different p-value threshold when comparing results across tests.

type seqs:

list[str]

param seqs:

List of DNA sequences to test.

type seqs:

list[str]

returns:

A tuple containing the log2 fold change and p-value of motif enrichment.

rtype:

tuple[float, float]

Examples

>>> log_fc, pval = motif_test.test(["ACGTAGCTAG", "CGTACGTAGC"])