anndata_format

Import/export Daf data from/to AnnData . See the Julia documentation for details.

dafpy.anndata_format. h5ad_as_daf ( h5ad : str , * , name : str | None = None , obs_is : str | None = None , var_is : str | None = None , X_is : str | None = None , unsupported_handler : Literal [ 'IgnoreHandler' ] | Literal [ 'WarnHandler' ] | Literal [ 'ErrorHandler' ] = 'WarnHandler' ) DafWriter [source]

View AnnData as a Daf data set, specifically using a MemoryDaf . See the Julia documentation for details.

Note that you only pass an h5ad path, since the Julia AnnData object comes from the Muon.jl package and is not compatible with the Python anndata object.

dafpy.anndata_format. daf_as_h5ad ( daf : DafReader , * , obs_is : str | None = None , var_is : str | None = None , X_is : str | None = None , h5ad : str ) None [source]

View the Daf data set as AnnData . See the Julia documentation for details.

Note this just creates the h5ad file. We do not return the AnnData object, because it is a Julia ( Muon.jl ) AnnData object, which is not a Python anndata AnnData object.