Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Batch correction for joint modality umap #123

Open
GirayEryilmaz opened this issue Aug 23, 2023 · 0 comments
Open

Batch correction for joint modality umap #123

GirayEryilmaz opened this issue Aug 23, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@GirayEryilmaz
Copy link

Hi Muon Team!

I have been using muon to analyze some cite-seq data. I wanted to make a joint umap of the two modalities. Which I can do with the pipeline I found in the citeseq data integration tutorial.

batch_key = 'batch'
sc.external.pp.bbknn(mdata['rna'], batch_key=batch_key)
sc.external.pp.bbknn(mdata['adt'], batch_key=batch_key)

mu.pp.neighbors(mdata, key_added='wnn')
mu.tl.umap(mdata, neighbors_key='wnn', random_state=10)

However what I get suffers from batch effects. I had expected the umap to be batch corrected since muon.pp.neighbors works on batch corrected neighborhoods of individual modalities but that does not seem to be the case. Am I missing something?

Notes:

  1. For clustering I use muon's leiden which produces better results than scanpy's leiden in terms of batch effects.
  2. The umaps of individual modalities are batch corrected successfully.

Thanks!

@GirayEryilmaz GirayEryilmaz added the enhancement New feature or request label Aug 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant