Code was adapted from R package gscreend. The alpha-RRA method is adapted from MAGeCK.
calculateGenePval(pvec, genes, alpha, nperm = 20)
A list with four elements: 1) a list of genes with their p-values; 2) a numeric matrix of rho null, each column corresponding to a different number of sgRNAs per gene; 3)a numeric vector of rho; 4) a numeric vector of number of sgRNAs per gene.
A numeric vector containing p-values of sgRNAs.
A character string containing gene names corresponding to sgRNAs.
A numeric number denoting the alpha cutoff (i.e. 0.05).
Number of permutations, default is 20