smftools.tools.partitioned_hmm#
Bounded HMM execution over partitioned preprocessing/spatial spines.
Functions
|
Materialize, annotate, core-crop, and persist one HMM task. |
|
Run bounded HMM tasks and publish a linked thin spine. |
- smftools.tools.partitioned_hmm.execute_hmm_task(spine_path, task, cfg, output_dir, models_dir)#
Materialize, annotate, core-crop, and persist one HMM task.
Layers are streamed to disk (
incremental_zarr.append_zarr_layer) one at a time and freed fromadata.layersimmediately after, instead of being collected into a second, core-cropped copy (result'slayers=dict) that used to sit in memory alongside the still-live original -- same rationale, and same pattern, aspreprocessing.partitioned_ executor.execute_preprocess_task.model.annotate_adataitself still writes every layer for one HMM task (accessibility/cpg) ontoadatabefore returning, so this doesn't lower the peak during annotation, but it removes the double-materialization that followed it.