Entering edit mode
4 months ago
Bioinformatics_begginner
▴
20
Dear community,
I have .5had files with that I would like to concat in python into one single h5ad.
import anndata as ad
file1 = ad.read_h5ad("file.h5ad")
file2= ad.read_h5ad("file2.h5ad")
They have exactly the same genes but different cell types. And I would like after reading them to concat into a single h5ad file.
How can I do this?
Best Regards,
with
merged = ad.concat([file1, file2])