Description Usage Arguments Details Value Author(s) Examples
This function randomly perturbs the binary dependency matrix to generate a null distribution of profiles of fitness genes across fixed number of cell lines, and corresponding null distribution of cumulative sums.
1 2 3 | ADAM2.generateNullModel(depMat,
ntrials=1000,
display=TRUE)
|
depMat |
Binary dependency matrix, rows are genes and columns are samples. 1 in position [i,j] indicates that inactivation of the i-th gene exerts a significant loss of fitness in the j-th sample, 0 otherwise. |
ntrials |
Integer, default =100. How many times to randomly perturb dependency matrix to generate the null distributions. |
display |
Boolean, default is TRUE. Should bar plots of the dependency profiles be plotted |
For a number of trials specified in (ntrials
) the inputted binary dependency matrix is randomised, keeping its column marginal sums. The profiles of fitness genes across fixed number of cell lines, and corresponding cumulative sums, are returned for each random perturbation.
A list with the following two named vectors:
nullProf |
Matrix of number of fitness genes for fixed number of cell lines from. Each rows of matrix corresponds to a random trial. |
nullCumSum |
Matrix of profile of cumulative number of fitness genes in fixed number of cell lines. Each row of matrix is one random trial. |
C. Pacini, E. Karakoc & F. Iorio
1 2 | data(exampleDepMat)
pprofile <- ADAM2.generateNullModel(depMat = exampleDepMat,ntrials=1000)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.