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

Reference data: normalized or not #386

Open
Dillon214 opened this issue Oct 3, 2024 · 1 comment
Open

Reference data: normalized or not #386

Dillon214 opened this issue Oct 3, 2024 · 1 comment
Labels
question Further information is requested

Comments

@Dillon214
Copy link

Hello Cell2location devs,

Small question: does cell2location expect the expression matrix for scRNA reference data to be:

A. Normalized for library size and log-transformed (as is often done in most single-cell RNA analyses)

...or...

B. Unnormalized counts.

If the answer is B, how does cell2location account for discrepencies in library size between cells?

-Dillon

@Dillon214 Dillon214 added the question Further information is requested label Oct 3, 2024
@vitkl
Copy link
Contributor

vitkl commented Oct 6, 2024

Hi @Dillon214

It is the option B. The estimated average RNA abundance for every gene and every cell type has to be on a linear counts scale for factorisation of the spatial data to work correctly. You can see the details in the paper methods section and in supplementary methods.

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

No branches or pull requests

2 participants