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

normalization #110

Open
shimasadri opened this issue Jul 22, 2024 · 1 comment
Open

normalization #110

shimasadri opened this issue Jul 22, 2024 · 1 comment

Comments

@shimasadri
Copy link

I tried the following normalization in python
sc.pp.normalize_total(adata)
sc.pp.scale(adata, max_value=1e4)

but when I run compass I get the following warning message
RuntimeWarning: invalid value encountered in log2
result = getattr(ufunc, method)(*inputs, **kwargs)

How can I modify the normalization (in pyhton) to solve this?

Thank you

@DPLemonade
Copy link

Hi @shimasadri! COMPASS expects normalized counts as input so running sc.pp.normalize_total(adata) should already be fine (assuming that adata contains raw counts). Also note that COMPASS expects linear-scale data instead of log-transformed data.

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