-
Notifications
You must be signed in to change notification settings - Fork 64
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
[Feature request] one vs. all others #168
Comments
Hi @acoteataltius, that would be a convenient feature to have indeed. It's not available in pydeseq2 yet, but I'm adding it to our feature wishlist. I'll give it a go when I have time, but I'm also happy to help anyone opening a PR. Not sure what would be the best way to implement it from a user perspective (maybe a In the meantime it seems that it would be possible to obtain the same results by manually setting the |
Hi @BorisMuzellec I'd like to ask it is even possible to compare all vs all? Basically, treating each level of the condition factor as a separate group and not setting any of them as a reference (e.g. healthy). Something like in R Deseq2: |
@GalaMichal there is unfortunately no direct way to do this as of yet. This relates to #213. However I think it is possible to obtain the same design matrix using
Let me know if this works! |
@BorisMuzellec thank you for quick response. Unfortunately, it doesn't work. The same situation occurs when I try, for example, ' |
@BorisMuzellec Any news on this? Without a one vs rest approach we're a bit forced to use scanpy's rank_genes_group, but would be very nice to have it on PyDESeq2 |
I was trying to adapt so that a temporary metadata is created in the sense that we would create a new column with "group X" vs "rest" as such:
Then I created a volcano plot for all comparisions including "Others" as such (in this case for NMF factors, but you could try with any other grouping) @BorisMuzellec Would this be an accurate approach to do this? |
Hi @Rafael-Silva-Oliveira, sorry for the late reply. I think this could be solved by #328 once it's merged, as it will then be possible to input contrast vectors directly. Then, it should be possible to apply @acoteataltius's method (see also here). |
Perfect, thank you! Do you think my approach would work too? |
I'd like to be able to input a contrast design (or otherwise choose design factors), to do a one vs all comparison within in a particular "condition" that has more than two levels. If my column "condition" has levels A, B, C, and D, do a comparison of A vs B, C, D.
Something like these options in R deseq2:
design <- ~0 + condition
contrast = c(1, -1/3, -1/3, -1/3)
contrast=list(c("conditionA"),
c("conditionB","conditionC","conditionD"))
Would it be possible to do something where if you leave the second option blank in contrast, like:
contrast = ['condition', 'A', '']
it compares A with all other samples?
The text was updated successfully, but these errors were encountered: