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

aggregate_gene_expression() add norm_method = "none" #686

Open
Erlmeierlu opened this issue Oct 25, 2023 · 0 comments
Open

aggregate_gene_expression() add norm_method = "none" #686

Erlmeierlu opened this issue Oct 25, 2023 · 0 comments

Comments

@Erlmeierlu
Copy link

Hi,

I wanted to create pseudo-bulk samples, and instead of doing it by hand, I looked into the aggregate_gene_expression() function, in hopes it would get the job done. However, this function forces normalization (what probably makes sense for its usual applications).

I found a workaround to acutally use this function to create pseudo-bulk counts:

pData(cds)$Size_Factor <- 1
aggregate_gene_expression(cds, cell_group_df = group_df, norm_method = "size_only", scale_agg_values = FALSE)

However, an implementation of something like norm_method = "none", would solve the issue of having to change the size factors.
I know, pseudo-bulk anaylsis is not part of the complete monocle workflow. But it could be useful for people, who like to use monocle for some parts of their analysis, like me.

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