structboost.write_annotations_to_h5ad

structboost.write_annotations_to_h5ad(adata_path, annotations)[source]

Write functional annotations into adata.uns of a .h5ad file.

Annotations are stored under adata.uns["bae_dimension_annotations"] as a dict keyed by dimension index (string).

Warning

The file is read, mutated and written back over the same path. Keep a copy if the original matters.

See also

extract_gene_rankings

Produce the ranked gene lists to annotate.

Parameters:
Return type:

None