lnschema_covim.rename_featureset_members

lnschema_covim.rename_featureset_members(artifacts, members_to_rename, field)

Renames members of FeatureSets of AnnData Artifacts.

Parameters:
  • artifacts (Iterable[Artifact]) – AnnData Artifacts for which the renaming will be performed.

  • members_to_rename (Mapping[SQLRecord, SQLRecord]) – Old records mapping to new records whose field values will be renamed in adata.var.index.

  • field (DeferredAttribute) – The field to rename such as ‘name’ or ‘symbol’.

Return type:

None

Assumes that the field values to be replaced are in the adata.var.index.