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

RCTD method's cell type weights doesn't sum to 1 #193

Open
Lahiru-lsb opened this issue Feb 16, 2024 · 1 comment
Open

RCTD method's cell type weights doesn't sum to 1 #193

Lahiru-lsb opened this issue Feb 16, 2024 · 1 comment

Comments

@Lahiru-lsb
Copy link

Hi,

I'm using the RCTD method for cell type deconvolution. When I apply RCTD in both full and doublet modes, the results, which include the cell type weights for each pixel, don't sum up to 1. I thought these weights represent the cell type proportions for each spot (pixel), and so, shouldn't they add up to 1 for each pixel?

For further clarification, I have attached a screenshot of the output I obtained using the same codes and data provided by the vignette. In the below output, we can see that the proportions don't add to 1. I hope you can help me clarify this matter.

image

@dpcook
Copy link

dpcook commented Mar 25, 2024

Don't know enough to know exactly how to interpret differences in weight sums, but just note that this is mentioned in their vignette where they run the normalize_weights() function, which just seems to rescale each spot to sum to 1 with weight / sum(weights).

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