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

Filtering? #5

Open
idalarsson opened this issue Nov 17, 2023 · 1 comment
Open

Filtering? #5

idalarsson opened this issue Nov 17, 2023 · 1 comment

Comments

@idalarsson
Copy link

idalarsson commented Nov 17, 2023

Hi!
I tried running drug2cell on my single cell data and it works fine, but in the resulting adata-object only around 3000 cells are kept, even though around 30 000 cells go into the analysis from the original adata object. Is there some filtering going on in the d2c.score() function that can explain this? And is there a parameter to tune this so more cells are kept?
Thanks!

@ktpolanski
Copy link
Contributor

ktpolanski commented Jul 3, 2024

There is nothing in d2c.score() that does any sort of cell filtering. I tried for a fresh install and ran the following minimal example:

import scanpy as sc
import drug2cell as d2c

adata = sc.datasets.pbmc3k_processed()
d2c.score(adata, use_raw=True, targets = {"testing":["LINC00115"]})

Both adata and adata.uns["drug2cell"] have 2638 cells. 2620 of adata.uns["drug2cell"]'s cells have zero counts but they are there!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants