Within this approach, the read counts of all sgRNAs in one dataset are first normalized by the function set in the MIACCS file. By default, normalization is done by read count division with the dataset median. Then, the fold change of each population of sgRNAs for a gene is tested against the population of either the non-targeting controls or randomly picked sgRNAs, as defined by the random picks option within the MIACCS file, using a two-sided Mann-Whitney-U test. P-values are corrected for multiple testing using FDR.
stat.wilcox(untreated.list=list(NULL, NULL),treated.list=list(NULL, NULL),
namecolumn=1, fullmatchcolumn=2,normalize=TRUE,norm.fun=median,
extractpattern=expression("^(.+?)_.+"), controls=NULL, control.picks=300, sorting=TRUE)
Regular Expression, used to extract the gene name from the sgRNA name. Please make sure that the gene name extracted is accesible by putting its regular expression in brackets (). The default value expression("^(.+?)_.+") will look for the gene name (.+?) in front of the separator _ and any character afterwards .+ e.g. gene1_anything .
untreated | treated | foldchange | |
p.value | AAK1 | 2.061346 | 3.007924 |
1.351672 | 0.2966311 | AATK | 3.413357 |
5.129985 | 1.398695 | 0.1146190 | ABI1 |
2.997385 | 4.384881 | 1.418959 | 0.1437962 |
ABL1 | 2.269906 | 2.874087 | 1.211499 |
0.3681327 | ABL2 | 2.519391 | 4.539583 |
1.732575 | 0.6335575 | untreated |
data(caRpools)
data.wilcox = stat.wilcox(untreated.list = list(CONTROL1, CONTROL2),
treated.list = list(TREAT1,TREAT2), namecolumn=1, fullmatchcolumn=2,
normalize=TRUE, norm.fun=median, sorting=FALSE, controls="random",
control.picks=NULL)
knitr::kable(data.wilcox[1:10,])
Run the code above in your browser using DataLab