This is a test version of Biostars. For the public version, visit https://www.biostars.org.
How to concat multiple h5ad files into one

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,

singlecell singlecellexperiment h5ad python anndata

with

merged = ad.concat([file1, file2])

0 answers

No answers yet.

Log in to answer this question.