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

run_enrichment does not work when selecting a single factor #164

Open
jjcaff opened this issue Jun 16, 2024 · 0 comments
Open

run_enrichment does not work when selecting a single factor #164

jjcaff opened this issue Jun 16, 2024 · 0 comments

Comments

@jjcaff
Copy link

jjcaff commented Jun 16, 2024

I've found a single factor that I want to perform pathway enrichment on. When I try to run_enrichment but select only one factor, I get an error message.

pathways <- run_enrichment(model, 
                            view = "transcriptomic", 
                            factors = 1, 
                            feature.sets = MSigDB_v6.0_C5_human, 
                            sign = "all", 
                            statistical.test = "parametric") 

The paraphrased readout message is:
Warning: XXX features were removed because they had no variance in the data. Intersecting features names in the model and the gene set annotation results in a total of XXXXX features. Error in W[features, , drop = FALSE] : incorrect number of dimensions

Currently the workaround is to just select any other additional factor as well as the one of interest.

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