-
Dear scvelo team, I'm trying to perform add loom files to pre-processed adata that is consisted of three samples (annotated with -1,-2,-3 in cellID). I saw in solved issue (#36) you mentioned that the merge module would first clean up the CellID before merging. If this is the case how would the sample correspondence be retained when merging the data? Would you recommend the following workflow?
Thanks, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
@ifanirene, I suppose your
Line 165 in 1659cc8 Lines 168 to 171 in 1659cc8
Lines 126 to 131 in 1659cc8 You can use your workflow. Alternatively, you can also first concatenate the |
Beta Was this translation helpful? Give feedback.
@ifanirene, I suppose your
ldataX
objects are the AnnData objects you get from the loom files?scv.utils.merge
only "cleans" the observation names if there are no overlap betweenadata.obs_names
andldata.obs_names
:scvelo/scvelo/read_load.py
Line 165 in 1659cc8
scvelo/scvelo/read_load.py
Lines 168 to 171 in 1659cc8
scv.utils.clean_obs_names
removes unwanted parts from the observation names and saves the removed part inadata.obs['sample_batch']