Open samWieczorek opened 2 years ago
1/ In PEPA the calculation of the related components depends only on the pep-prot matrix (named X), and thus this calculation can be done once for all comparisons (1vs1 or 1vsAll). It would thus be necessary to take this part of the pepa.test function and make it a separate function, and add its result in the parameters of the pepa.test function. To externalise this function, we just need to: (1) duplicate lines 421 and 422 and (2) extract the part from line 444 to 451. The result of the function is cc, directly called in the rest of the pepa.test code. 2/ make a function that first calculates cc, then calls the pepa.test function with the default parameters (and thus cc in addition), in order to calculate the p-values for all possible pairs of comparisons (in 1vs1 or 1vsAll). The list of p-values in output of pepa.test is in the llr.map.pv object. 3/ In parallel, make a similar function for the calculation of the cc, but with the fast cade (cf. beginning of the ticket). 4/ With the help of Laurent Jacob, we will replace the slow function by the fast one.
Implemented but keep the issue open to make sure that when we integrate PEPA, it uses this accelerated function
Describe the feature I found a way to speed up (almost x100) the calculation of the CCs needed for PEPA, so that it could also be used to visuate the pepe-prot relationship. here is the code.