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

Refmap fails if protein slot present in mudata #207

Open
wlason opened this issue Mar 2, 2024 · 0 comments
Open

Refmap fails if protein slot present in mudata #207

wlason opened this issue Mar 2, 2024 · 0 comments

Comments

@wlason
Copy link
Contributor

wlason commented Mar 2, 2024

I want to run refmap on my mudata object created using integrate. The mudata has a prot modality. Because my model is scvi and not totalvi, this line will evaluate to False, and the script fails because X_array is never created.

https://github.com/DendrouLab/panpipes/blob/5da748c5f12b23f81cd283c46aa94a4135f73bbf/panpipes/python_scripts/refmap_scvitools.py#L86C18-L86C19

Changing this line to if "prot" in mdata.mod.keys(): and removing totalvi check seems to solve the problem. I haven't managed to run the refmap pipeline in full yet (I have some other issues) but it seems to solve this particular problem.

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

1 participant