sumZ | R Documentation |
sumZ adds Z-values of all guides per gene, then corrects each value by dividing by the square root of the number of guides representing the gene
sumZ(guides, Z)
guides |
Character vector. List of guides |
Z |
Numeric vector. Z-values of guides |
Returns a numeric vector of the same length as the number of genes with the corrected summed Z-value.
Z-values can be based on the entire population, but also on a population of control genes. See examples below
Jos B. Poell
CRISPRsim
, jar
, radjust
, r2Z
ut <- CRISPRsim(5000, 4, a = c(3,3), allseed = 1, perfectsampling = TRUE) tr <- CRISPRsim(5000, 4, a = c(3,3), e = TRUE, allseed = 1, perfectsampling = TRUE) cgi <- which(tr$d > -0.05 & tr$d < 0.05 & tr$e > -0.05 & tr$e < 0.05) r0 <- jar(ut$t6, ut$t0) r1 <- jar(tr$t6, ut$t6) Z0 <- r2Z(r0, normsubset = cgi) Z1 <- r2Z(r1, normsubset = cgi) sumZ0 <- sumZ(tr$guides, Z0) sumZ1 <- sumZ(tr$guides, Z1) reald <- rle(tr$d)$values reale <- rle(tr$e)$values plot(reald, sumZ0) plot(reale, sumZ1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.