Concatenation of adata and losing .var
0
0
Entering edit mode
3 months ago
bioinfo ▴ 160

Hello,

I am trying to use ad.concat (adata = ad.concat(adatas, label="sample"")) to merge 2 adata objects but I lost the .var layer.

I found this link https://discourse.scverse.org/t/loosing-anndata-var-layer-when-using-sc-concat/1605/2 that discussed the issue.

However, I also noticed that if I do adata = ad.concat(adatas, label="sample", join="outer", merge="same") the .var layer was preserved. Is there a reason why I should do the concatenation using the information from the link and concatenating the .obs and .var separately instead of using the below?

 adata = ad.concat(adatas, label="sample", join="outer", merge="same")

Thank you

single seq cell RNA scanpy • 477 views
ADD COMMENT

Login before adding your answer.

Traffic: 3957 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