anndict.utils.build_adata_from_visium#
- anndict.utils.build_adata_from_visium(paths_dict, hd=False)[source]#
Processes Visium data from input directories and saves the processed AnnData objects to specified output paths.
- Parameters:
- paths_dict
dict
[str
,str
] A dictionary with input directories as keys and output file paths as values.
- hd
bool
(default:False
) If
True
, converts'spatial'
to float and'obs'
columns to integers.
- paths_dict
- Return type:
None
- Returns:
None
Notes
Writes the processed
AnnData
objects to the specified output paths.Example
paths_dict = { 'input_dir1': 'output_path1.h5ad', 'input_dir2': 'output_path2.h5ad' } build_adata_from_visium(paths_dict, hd=True)