grassp.io.list_msnset_results#
- list_msnset_results(path, *, strict_spec=False)[source]#
Inventory a pRoloc artifact without reading it into a session.
Reports what the artifact holds and where each piece belongs, so you can look before you read or merge.
strict_specdefaults toFalsehere, since inspecting an artifact you cannot read is exactly when you want a report.- Return type:
- Returns:
A dict describing the artifact:
source,spec,n_obs,n_vars,obs_names– provenance, shape and a few example IDs.obs/var–{column: dtype}for the scalarfData/pDatacolumns.matrices–{name: {"shape": [...], "categories": [...]}}for the matrix-valuedfDatacolumns, which live in.obsm;var_matricesthe same forpData, in.varm.layers– extraassayDataelement names.notes– advisory warnings about columns pRoloc is known to misname.dropped– slots the writer could not carry, peruns["msnset_dropped"].
- Parameters:
Examples
>>> gr.io.list_msnset_results("results.h5ad")["matrices"] {'svm.all.scores': {'shape': [2538, 12], 'categories': ['Cytosol', ...]}}