snapatac2.PyDNAMotifScanner.find#

PyDNAMotifScanner.find(seq, pvalue=1e-05)#

Find motif occurrences in the given sequence above the specified p-value threshold.

Note it does not consider reverse complement matches.

Parameters:
  • seq (str) – DNA sequence to scan.

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

Returns:

A list of tuples where each tuple contains the position of the motif occurrence and the corresponding p-value.

Return type:

list[tuple[int, float]]