snapatac2.PyDNAMotifScanner.exist#

PyDNAMotifScanner.exist(seq, pvalue=1e-05, rc=True)#

Check if the motif exists in the given sequence above the specified p-value threshold.

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

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

  • rc (bool) – Whether to consider reverse complement matches. Default is True.

Returns:

True if the motif exists in the sequence, False otherwise.

Return type:

bool