In the original protein correlation profiling (PCP), Andersen et al. use the peptide normalised profiles along gradient fractions and compared them with the reference profiles (or set of profiles) by computing \(Chi^2\) values, \(\frac{\sum (x_i - x_p)^2}{x_p}\), where \(x_i\) is the normalised value of the peptide in fraction i and \(x_p\) is the value of the marker (from Wiese et al., 2007). The protein \(Chi^2\) is then computed as the median of the peptide \(Chi^2\) values. Peptides and proteins with similar profiles to the markers will have small \(Chi^2\) values.

The chi2 methods implement this idea and compute such Chi^2 values for sets of proteins.

Methods

signature(x = "matrix", y = "matrix", method = "character", fun = "NULL", na.rm = "logical")

Compute nrow(x) times nrow(y) \(Chi^2\) values, for each x, y feature pair. Method is one of "Andersen2003" or "Wiese2007"; the former (default) computed the \(Chi^2\) as sum(y-x)^2/length(x), while the latter uses sum((y-x)^2/x). na.rm defines if missing values (NA and NaN) should be removed prior to summation. fun defines how to summarise the \(Chi^2\) values; default, NULL, does not combine the \(Chi^2\) values.

signature(x = "matrix", y = "numeric", method = "character", na.rm = "logical")

Computes nrow(x) \(Chi^2\) values, for all the \((x_i, y)\) pairs. See above for the other arguments.

signature(x = "numeric", y = "matrix", method = "character", na.rm = "logical")

Computes nrow(y) \(Chi^2\) values, for all the \((x, y_i)\) pairs. See above for the other arguments.

signature(x = "numeric", y = "numeric", method = "character", na.rm = "logical")

Computes the \(Chi^2\) value for the \((x, y)\) pairs. See above for the other arguments.

References

Andersen, J. S., Wilkinson, C. J., Mayor, T., Mortensen, P. et al., Proteomic characterization of the human centrosome by protein correlation profiling. Nature 2003, 426, 570 - 574.

Wiese, S., Gronemeyer, T., Ofman, R., Kunze, M. et al., Proteomics characterization of mouse kidney peroxisomes by tandem mass spectrometry and protein correlation profiling. Mol. Cell. Proteomics 2007, 6, 2045 - 2057.

See also

Author

Laurent Gatto <lg390@cam.ac.uk>

Examples

mrk <- rnorm(6)
prot <- matrix(rnorm(60), ncol = 6)
chi2(mrk, prot, method = "Andersen2003")
#>  [1] 1.0967902 1.1463540 1.4191266 0.2068751 1.0465213 0.4551556 0.5688080
#>  [8] 0.8372766 0.6537026 1.6546128
chi2(mrk, prot, method = "Wiese2007")
#>  [1] -99.022514   1.259352   5.659525  -9.411881 -16.221333  -8.607184
#>  [7]  -8.761559 -12.617465 -16.665233 -61.464536

pepmark <- matrix(rnorm(18), ncol = 6)
pepprot <- matrix(rnorm(60), ncol = 6)
chi2(pepmark, pepprot)
#>            [,1]      [,2]      [,3]
#>  [1,] 4.5988896 3.1499537 3.7396873
#>  [2,] 1.6701143 1.3216528 1.6257841
#>  [3,] 2.2106985 1.0001274 1.3839472
#>  [4,] 3.8488785 0.8428786 2.2532602
#>  [5,] 3.4259609 3.3506198 4.4293366
#>  [6,] 0.7326039 1.1720762 0.5971256
#>  [7,] 3.6745519 2.8268972 2.3971798
#>  [8,] 3.0170132 0.9467137 0.7544976
#>  [9,] 0.3171632 1.6979943 0.5115651
#> [10,] 2.4818172 1.3501409 1.4529782
chi2(pepmark, pepprot, fun = sum)
#>  [1] 11.488531  4.617551  4.594773  6.945017 11.205917  2.501806  8.898629
#>  [8]  4.718224  2.526723  5.284936