Preprocessing pp#
Preprocessing functions for seqlet extraction and motif similarity analysis.
|
Extract, scale, and process seqlets from saliency maps. |
|
Calculate TomTom similarity and convert to log-space for clustering. |
|
Create comprehensive AnnData object storing all seqlet data for analysis pipeline. |
Accessors#
Per-seqlet and per-region arrays are stored once in adata.uns["unique_examples"] and read
back through these functions rather than being duplicated into adata.obs.
|
Get the one-hot sequence of a single seqlet. |
|
Get the one-hot sequences of several seqlets. |
|
Get the normalized contribution matrix of a single seqlet. |
|
Get the normalized contribution matrices of several seqlets. |
|
Get the index for an example associated with a seqlet. |
|
Get the one-hot sequence for an example associated with a seqlet. |
|
Get the contribution scores for an example associated with a seqlet. |