I’m in to process of learning single cell analysis. Thus far I’ve within my first week made good progress in analysing single cell data by using Scanpy.
However I’ve hade som trouble analysing a publicly available CITE-seq dataset. My problem is very basic, the data is uploaded in this manner:
I’ve only found tutorials showing how to load h5.files containing the above, but I’ve had a hard time figuring out how to create an AnnData containing all of the above.
I would be very happy for any of your suggestions.
Basically you have a multiomics experiment so why not use MuData and muon for this? You can try:
import muon as mu
mdata = mu.MuData({
"rna": adata_gex,
"prot": adata_adt
})
(Of course, use any names you like in place of “rna” and “prot” in the dict).
It is possible that you do not even need to subset the objects with the intersection of barcodes but depending on your specific problem that might be what you want to do anyway.
You can check the muon website on how to use them: