Closed nilchia closed 1 month ago
Bug in H5 data assertion for h5ad files
I tried to use has_h5_attribute and has_h5_keys to assert scanpy outputs (here)
has_h5_attribute
has_h5_keys
This assertion has the same problem as the h5ad metadata (Which was fixed here).
for example:
<output name="anndata_out" ftype="h5ad"> <assert_contents> <has_h5_keys keys="X,layers,obs,obsm,obsp,uns,var,varm,varp"/> <has_h5_attribute key="obs" value="louvain"/> <has_h5_attribute key="uns" value="louvain"/> </assert_contents> </output>
fails with this error:
Not a HDF5 file or H5 attributes do not match: [('encoding-type', 'anndata'), ('encoding-version', '0.1.0')] (obs : louvain)
This works: <has_h5_keys keys="obsm/X_PCA" />
<has_h5_keys keys="obsm/X_PCA" />
Bug in H5 data assertion for h5ad files
I tried to use
has_h5_attribute
andhas_h5_keys
to assert scanpy outputs (here)This assertion has the same problem as the h5ad metadata (Which was fixed here).
for example:
fails with this error: