pyXenium.mechanostress.TumorStromaGrowthConfig#

class TumorStromaGrowthConfig(annotation_col='Annotation', tumor_label='Tumor', stroma_label='Stromal', x_col='x_centroid', y_col='y_centroid', cell_id_col='cell_id', method='delaunay_hop')#

Bases: object

Configuration for tumor-stroma growth pattern classification.

Parameters:
  • annotation_col (str)

  • tumor_label (str)

  • stroma_label (str)

  • x_col (str)

  • y_col (str)

  • cell_id_col (str)

  • method (str)

__init__(annotation_col='Annotation', tumor_label='Tumor', stroma_label='Stromal', x_col='x_centroid', y_col='y_centroid', cell_id_col='cell_id', method='delaunay_hop')#
Parameters:
  • annotation_col (str)

  • tumor_label (str)

  • stroma_label (str)

  • x_col (str)

  • y_col (str)

  • cell_id_col (str)

  • method (str)

Return type:

None

Methods

__init__([annotation_col, tumor_label, ...])

copy_with(**updates)

to_dict()

Attributes

annotation_col: str = 'Annotation'#
tumor_label: str = 'Tumor'#
stroma_label: str = 'Stromal'#
x_col: str = 'x_centroid'#
y_col: str = 'y_centroid'#
cell_id_col: str = 'cell_id'#
method: str = 'delaunay_hop'#
to_dict()#
Return type:

dict[str, Any]

copy_with(**updates)#
Parameters:

updates (Any)

Return type:

TumorStromaGrowthConfig