Open moi-taiga opened 1 year ago
Check how effective this is:
zerop_g <- c()
expdata <- assays(sce)$expdata for (i in 1:nrow(expdata)) { zp <- length(which(expdata[i, ] == 0))/ncol(expdata) zerop_g <- c(zerop_g, zp) }
zerop_g <- apply(expdata==0, 1, sum) zerop_g <- zerop_g/ncol(expdata)
Check how effective this is:
calculate zero percentage
zerop_g <- c()
zerop_g <- c()
expdata <- assays(sce)$expdata for (i in 1:nrow(expdata)) { zp <- length(which(expdata[i, ] == 0))/ncol(expdata) zerop_g <- c(zerop_g, zp) }
for (i in 1:nrow(expdata)) {
zp <- length(which(expdata[i, ] == 0))/ncol(expdata)
zerop_g <- c(zerop_g, zp)
}
zerop_g <- apply(expdata==0, 1, sum) zerop_g <- zerop_g/ncol(expdata)