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

Cell type assignment in "coef" #18

Open
sarahbonnin opened this issue Aug 9, 2022 · 2 comments
Open

Cell type assignment in "coef" #18

sarahbonnin opened this issue Aug 9, 2022 · 2 comments

Comments

@sarahbonnin
Copy link

Hello,

I have a very basic question!

After running the "init" and "optimize" steps, I obtain the coefficients with the deconvolve function:

ag.init(adata, celltype_key='Celltype')
ag.optimize(ngen=5000, nfeatures=400, seed=0, mode="fixed")
coef=ag.deconvolve(bulk_data, model="nnls")

coef doesn't contain headers or row names, and I was wondering how one can be sure which cell types and which samples correspond to which columns / rows?
I assume that, for the samples, the order will not change from the bulk's row names, but what about the different cell types? How can I assign names there?

Thank you!!

@sarahbonnin sarahbonnin changed the title Cell type assignation in "coef" Cell type assignment in "coef" Aug 9, 2022
@lila167
Copy link
Contributor

lila167 commented Aug 9, 2022

Hi Sarah,
thanks for using our tool!
Right, the order of the bulk samples don't change. The output of "ag.init" when you feed in anndata, contains the mean expressions of the cell type (centroids = ag.init(adata, celltype_key='Celltype')). The order of the cell types should be similar to that.
Let me know if you have any more Qs.

@sarahbonnin
Copy link
Author

Hi,
Great, thank you very much for the prompt reply!
No further question at the moment, thanks again.

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