Both PerturbationSpaces and ClusterSpaces add a column in .obs that stores either the perturbation name or the clustering label. For downstream processing of the data (e.g. plotting), it is required that the values are stored as categorical. By including the conversion to a categorical column in the compute methods, the user doesn't need to perform the conversion separately, thereby simplifying usage.
Description of changes
Both
PerturbationSpaces
andClusterSpaces
add a column in.obs
that stores either the perturbation name or the clustering label. For downstream processing of the data (e.g. plotting), it is required that the values are stored as categorical. By including the conversion to a categorical column in thecompute
methods, the user doesn't need to perform the conversion separately, thereby simplifying usage.