How to concat multiple h5ad files into one
0
0
Entering edit mode
12 weeks ago

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 • 223 views
ADD COMMENT
0
Entering edit mode

with

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

ADD REPLY

Login before adding your answer.

Traffic: 1065 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6