Scanner#
- class lightmotif.Scanner(pssm, sequence, threshold=0.0, block_size=256)#
A fast scanner for identifying high scoring positions in a sequence.
This class internally uses a discretized version of the matrix to identify candidate positions, and then rescores blocks with the full algorithm only if needed. Using a
Scanneris likely faster than using thecalculatemethod for rare sites or high thresholds.Note
This algorithm is only available for DNA motifs because of implementation requirements.
- __iter__()#
Implement iter(self).
- __next__()#
Implement next(self).