Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

H5 data assertion in tool wrapping #18767

Closed
nilchia opened this issue Sep 3, 2024 · 1 comment
Closed

H5 data assertion in tool wrapping #18767

nilchia opened this issue Sep 3, 2024 · 1 comment

Comments

@nilchia
Copy link
Contributor

nilchia commented Sep 3, 2024

Bug in H5 data assertion for h5ad files

I tried to use has_h5_attribute and has_h5_keys to assert scanpy outputs (here)

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)
@nilchia
Copy link
Contributor Author

nilchia commented Sep 6, 2024

This works:
<has_h5_keys keys="obsm/X_PCA" />

@nilchia nilchia closed this as completed Sep 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant