Support automatic instantiation of Wrapper objects
keller-mark opened this issue · 2 comments
keller-mark commented
Currently, the user needs to manually configure parameters for wrapper classes like AnnDataWrapper:
AnnDataWrapper(
adata_path=zarr_filepath,
obs_embedding_paths=["obsm/X_umap"],
obs_embedding_names=["UMAP"],
obs_set_paths=["obs/CellType"],
obs_set_names=["Cell Type"],
obs_feature_matrix_path="X",
feature_filter_path="var/top_highly_variable"
)
but maybe we could support a static method like
AnnDataWrapper.from_object(adata)
or for SpatialData (depends on #286 )
SpatialDataWrapper.from_object(adata)
keller-mark commented
Or this could just be defined in a separate Wrapper class like
AutoAnnDataWrapper(adata)
keller-mark commented
Or perhaps the AnnDataWrapper class should do this by default, or with an opt-in parameter like
AnnDataWrapper(adata, auto_init=True)