Skip to content

enable updates to sample_id #25

Description

@keviny2

updates to sample_id must be reflected in both img_data and column_data. Bioconductor already handles this nicely, ensuring imgData and colData are updated simultaneously:

spe$sample_id<- paste(spe$sample_id, "A", sep=".")

will likely need column validators in BiocFrame

classBiocFrame:
defadd_validator(self, column: str, validator_func):
self._validators[column] =validator_funcdef__setitem__(self, key, value):
ifkeyinself._validators:
self._validators[key](value) # trigger sync between img_data/column_data

this would let SpatialExperiment register a validator to keep both data structures in sync when sample_id changes.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions