Created
April 22, 2022 22:24
-
-
Save joowkim/52b6b77b57a75a71fb9506a8c1406f89 to your computer and use it in GitHub Desktop.
RLE for DEseq2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rle <- function(vec) { | |
n <- length(vec) | |
return (round( (prod(vec) ^ (1/n)))) | |
} | |
vec <- c(65,78,67,34,56,23) | |
rle(vec) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment