You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would it be possible to add a mutate(across()) sort of functionality? (or maybe it already exists and I haven't found it)
I'm finding mutate(across()) very useful for mutating multiple columns of tibbles, and would love to do the same for GRanges objects. Right now I'm cheating by doing this sort of thing:
gr %>%
as.data.frame() %>%
mutate(across(starts_with("counts"), function(x) {log2(x)} )) %>%
as("GRanges")
Which isn't too bad really, but it might be nice to avoid going back and forth.
Hi there,
I've been enjoying plyranges - thank you!
Would it be possible to add a
mutate(across())
sort of functionality? (or maybe it already exists and I haven't found it)I'm finding mutate(across()) very useful for mutating multiple columns of tibbles, and would love to do the same for GRanges objects. Right now I'm cheating by doing this sort of thing:
Which isn't too bad really, but it might be nice to avoid going back and forth.
thanks!
Janet
Dr. Janet Young
Staff scientist, Malik lab
http://research.fhcrc.org/malik/en.html
Division of Basic Sciences
Fred Hutchinson Cancer Center
The text was updated successfully, but these errors were encountered: