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

test_gene_enrichment: No group or design set #41

Closed
mblue9 opened this issue May 30, 2020 · 2 comments
Closed

test_gene_enrichment: No group or design set #41

mblue9 opened this issue May 30, 2020 · 2 comments
Assignees

Comments

@mblue9
Copy link
Collaborator

mblue9 commented May 30, 2020

As discussed recording here as issue:
I tried this below with tidybulk dev, it ran but I got this message saying “No group or design set. Assuming all samples belong to one group” but they’re not all from the same group, so does it need to be given a group or design matrix or is the .formula meant to handle that?

readRDS("ent.rds") %>%
filter(entrez %>% is.na %>% !) %>%
test_gene_enrichment(
.formula = ~ 0 + dex + cell,
.sample = sample,
.entrez = entrez,
.abundance = count,
.contrasts = c("dextrt - dexuntrt"),
species = "human",
cores = 4
)

tidybulk says: The design column names are "dextrt, dexuntrt, cellN061011, cellN080611, cellN61311"
No group or design set. Assuming all samples belong to one group.

@stemangiola
Copy link
Owner

I have to improve the message. This comes from filtering. It is not so obvious in the presence of contrasts how to chose programmatically the factor of interest (column). But I will write the code to solve this scenario.

@stemangiola stemangiola self-assigned this May 31, 2020
@mblue9
Copy link
Collaborator Author

mblue9 commented Apr 16, 2021

I don't get this message any more. Can close issue?

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