snapatac2.PyDNAMotifScanner.exists#

PyDNAMotifScanner.exists(seqs, pvalue=1e-05, rc=True)#

Batch check if the motif exists in the given sequences above the specified p-value threshold.

This performs parallel computation over the input sequences.

Parameters:
  • seqs (list[str]) – List of DNA sequences 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:

A list of booleans indicating whether the motif exists in each sequence.

Return type:

list[bool]