with_varp#

SingleCell.with_varp(varp=None, /, **more_varp)[source]#

Adds one or more keys to varp, overwriting existing keys with the same names if present.

Parameters:
  • varp: dict[str, csr_array | csc_array | csr_matrix | csc_matrix] | None

    an optional dictionary of keys to add to (or overwrite in) varp

  • **more_varp: csr_array | csc_array | csr_matrix | csc_matrix

    additional keys to add to (or overwrite in) varp, specified as keyword arguments

Returns:

A new SingleCell dataset with the new key(s) added to or overwritten in varp.

Return type:

SingleCell