tiledbsoma.io.append_var

tiledbsoma.io.append_var(exp: Experiment, new_var: DataFrame, measurement_name: str, *, var_id_name: str = 'var_id', registration_mapping: ExperimentAmbientLabelMapping, context: SOMATileDBContext | None = None, platform_config: Dict[str, Mapping[str, Any]] | object | None = None) str

Writes new rows to an existing var dataframe. (This is distinct from update_var which mutates the entirety of the var dataframe, e.g. to add/remove columns.)

Example:

rd = tiledbsoma.io.register_anndatas(
    exp_uri,
    [new_anndata],
    measurement_name="RNA",
    obs_field_name="obs_id",
    var_field_name="var_id",
)

with tiledbsoma.Experiment.open(exp_uri, "w") as exp:
    tiledbsoma.io.append_var(
        exp, a2.var, measurement_name="RNA", registration_mapping=rd,
    )

Lifecycle

Maturing.