-
Notifications
You must be signed in to change notification settings - Fork 10
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
Implement group_by
and with_groups
for tidySingleCellExperiment
and tidyseurat
#71
Comments
group_by
and with_groups
for tidySCE and
tidyseurat`
group_by
and with_groups
for tidySCE and
tidyseurat`group_by
and with_groups
for tidySCE
and tidyseurat
group_by
and with_groups
for tidySCE
and tidyseurat
group_by
and with_groups
for tidySingleCellExperiment
and tidyseurat
|
I'm interested in having a go at this. I've looked at the |
Hello @B0ydT, great initiative. This is probably the transcriptomics hardest challenge (the one for tidySE is even harder). Currently, This challenge needs a design document first, as we need to iron out all possible pitfalls of grouping an arbitrary set of columns and doing some operations on them. Some combinations may lead to valid single cell experiment objects, while others may lead to invalid objects, and therefore A
Let's start from Then pretty much you have creative freedom in proposing a design document, describing the logics of the |
Any news? Let me know if you need help. |
Hi @stemangiola. Apologies for the slow response, I've been in the middle of changing jobs. I certainly wasn't looking to jump on the thorniest issue of the lot; It took your comment for me to see how this could be quite a lot trickier than the I have tried to think through the issues you've raised. From what I remember of the |
Hello @B0ydT, congrats for your new job! You can start with group_split, it is useful and much easier. A quick function for backend I found is splitColData <- function(x, f) {
# This is by @jma1991
# at https://github.com/drisso/SingleCellExperiment/issues/55
i <- split(seq_along(f), f)
v <- vector(mode = "list", length = length(i))
names(v) <- names(i)
for (n in names(i)) { v[[n]] <- x[, i[[n]]] }
return(v)
}
Of course our interface will allow any of the cell-wise info, including reduced dimensions, etc.. |
Thank you very much! That looks great. I'll get it sorted shortly. |
Stoked to have this merged. I'll repurpose for Just to follow up, the
That said, if you're fine with it I'm fine with it, just wanted to be clear. |
Repurposing to Repurposing to For For In fact you could get away using the nest quite optimised framework I developed. I would suggest doing sonmething like this in the backend data |> mutate(...) |> nest(data_nested = -...) |> pull(data_nested)
|
Aha, noted. I may not have much time between now and Christmas, but I'll see what I can do. |
On the other hand, if you manage to pull off my trick could take 5 minutes :) |
Hi @B0ydT, thanks for your great contribution! Please add your details to this authorship list if you would like to be included in our upcoming publication: https://docs.google.com/spreadsheets/d/19XqhN3xAMekCJ-esAolzoWT6fttruSEermjIsrOFcoo/edit?usp=sharing |
Thanks @william-hutchison, I will need to clear it with my supervisor but should complete it shortly. |
@william-hutchison Have added my details, thanks again |
@B0ydT great, thanks for your work! |
the issue for tidyseurat is here
stemangiola/tidyseurat#65
The text was updated successfully, but these errors were encountered: