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 to perform edgeR-LRT using Libra with no biological replicates? #30

Open
Kaixin-Huang opened this issue Sep 20, 2022 · 2 comments
Open

Comments

@Kaixin-Huang
Copy link

DE = run_de(snRNA, de_family = 'pseudobulk', de_method = 'edgeR', de_type = 'LRT',cell_type_col = "orig.ident")

This returns:
Error in mutate_at():
! Can't subset columns that don't exist.
✖ Column replicate doesn't exist.

So how can I perfrom edgeR-LRT using Libra with no biological replicates?

@jordansquair
Copy link
Collaborator

If you do not have biological replicates you would typically use a single-cell method (e.g., Wilcox), since pseudobulk methods require replicates. Alternatively, you could treat cells as replicates (cell_type_col = barcode) - however this will not protect you against the biases we describe in the paper.

@DagmaraNiedziela
Copy link

I tried to run a single-cell method (wilcox) on a Seurat dataset (specifically ifnb, it is a PMBC dataset with 2 treatments, no biological replicates), and I also received an error "Column replicate doesn't exist". Should this be working by default?

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

3 participants