-
Notifications
You must be signed in to change notification settings - Fork 18
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 implement rank function ties.method = "first" #91
Comments
Hi @Liripo, thanks for your question! Overall, yes this is something that would be possible. First, I think it might be better for me to understand what you want to do next with the matrix such that Currently, The reason for this offset is because most operations in BPCells perform much faster for sparse matrices (e.g. matrices with many zeros), so it is advantageous to keep zeros in the input to However, this would no longer be possible if we used the method What did you have in mind to do with |
The main purpose of using the |
Ah, if you're interested in AUC calculations I think that can be accomplished with just a slight modification of the existing wilcoxon code in Would it work for you if I just added an option to get the AUC directly? I think that would both be simpler to implement and I think better address your specific need |
I understand that there seems to be a difference. I was hoping to get the AUC values for genes set, similar to the AUCells package. |
Hi @Liripo, sorry for the delay on this. I've just added a pair of functions that I think will help you a lot if you want to implement something like this in BPCells: For your use case, your custom function would get all the data for an individual cell, then calculate+return the AUCell score(s) for that cell. You'd get a list of the scores with one entry per cell at the end. I still think At any rate, I don't think I have the bandwidth to dive in to a full AUCell implementation right now (though it looks like a quite interesting method!). I'm hopeful that If you have any questions about working with |
I see
BPCells:::rank_transform(mat = object, axis = axis)
and that the method isaverage
, is it possible to implementfirst
?example
colRanks(mtx,ties.method = "first")
The text was updated successfully, but these errors were encountered: