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

How is the AveExpr in mmDS calculated? #127

Open
Lila3141 opened this issue Sep 28, 2023 · 0 comments
Open

How is the AveExpr in mmDS calculated? #127

Lila3141 opened this issue Sep 28, 2023 · 0 comments

Comments

@Lila3141
Copy link

Dear MUSCAT team,

First of all, thanks for creating this great package.

I was wondering how the AveExpr in the output of mmDS is calculated?
And how can I calculate back the original aggregated expression from AveExpr?
I am concerned about missing some filtering steps performed by mmDS, that's why I want to calculate back the original mean expression based on AveExpr.

Here some more details and code:
For my cluster_id1, the AveExpr of the DEGs in the mmDS output ranges from 18.00536 to 24.08153
mm_dream <- mmDS(sce, method = "dream", coef = "group_idEndo",
n_cells = 50, n_samples = 3, covs = "batch")
The corresponding gene 'mean' ranges from about 0.008 to 59.3, calculated as following:
sce_mean <- aggregateData(sce, assay=NULL, by=c("cluster_id"), fun=c("mean"), scale=FALSE, verbose=TRUE)
sce_mean <- sce_mean@assays@data@listData[[1]]

Thanks a lot in advance for your answer!

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