itasc.contact_analysis.quantifiers.contacts¶
Cell-cell contacts quantifier — the registry adapter over the contacts code.
Wraps itasc.contact_analysis.contacts so the studio can build
and read contacts through the generic Quantifier interface. Its chosen
persistence is the contact_analysis.h5 schema, unchanged from before the
rename.
Classes
Quantifies cell-cell contacts: edges, T1 events, NLS classes. |
- class itasc.contact_analysis.quantifiers.contacts.ContactsQuantifier[source]¶
Bases:
QuantifierQuantifies cell-cell contacts: edges, T1 events, NLS classes.
- quantity_id: ClassVar[str] = 'contacts'¶
Stable key; an empty value marks an intermediate (non-registered) base.
- display_name: ClassVar[str] = 'Cell–cell contacts'¶
Human-readable label shown wherever a quantity is selected.
- requires: ClassVar[tuple[str, ...]] = ('cell_labels_path',)¶
PositionInputsfield names this quantifier needs to build.
- produces: ClassVar[str] = 'contact_analysis_path'¶
The contacts artifact is the input the contacts-derived quantifiers (neighbor count / enrichment / z-score / density / signed contact length) consume.
- default_output_name: ClassVar[str] = 'contact_analysis.h5'¶
Default artifact name when a position does not dictate one.
- default_output(inputs)[source]¶
The contacts
.h5lives in the position base folder, beside the committedcell_labels.tif/nucleus_labels.tif— not under the sharedOUTPUT_SUBDIRthat the other (dynamics) quantifiers persist into. One homogeneous per-position layout for the downstream-stable inputs and this derived-from-them graph.- Return type:
- Parameters:
inputs (PositionInputs)