Package orqa. R topics documented: February 20, Type Package

Similar documents
Package TANOVA. R topics documented: February 19, Version Date

Package RcppEigen. February 7, 2018

Package svapls. February 20, 2015

Package nlnet. April 8, 2018

Package lmesplines. R topics documented: February 20, Version

Package lclgwas. February 21, Type Package

Package ArrayBin. February 19, 2015

Package blocksdesign

Package longitudinal

Package RcppArmadillo

Package subtype. February 20, 2015

Oleg Burdakow, Anders Grimwall and M. Hussian. 1 Introduction

Package gpdtest. February 19, 2015

Package robustreg. R topics documented: April 27, Version Date Title Robust Regression Functions

IsoGeneGUI Package Vignette

Package clusterrepro

Package Iso. June 1, Index 8. Bivariate isotonic regression.

Package ECctmc. May 1, 2018

Package ANOVAreplication

Package blocksdesign

Package assortnet. January 18, 2016

Package acebayes. R topics documented: November 21, Type Package

Package GSRI. March 31, 2019

Package mgc. April 13, 2018

Package lcc. November 16, 2018

Package multdyn. R topics documented: August 24, Version 1.6 Date Title Multiregression Dynamic Models

Package pcr. November 20, 2017

Chapter 6: Linear Model Selection and Regularization

Package maxent. July 2, 2014

Package CONOR. August 29, 2013

Package RSNPset. December 14, 2017

Package frt. R topics documented: February 19, 2015

Package PCADSC. April 19, 2017

Package apastyle. March 29, 2017

Package validara. October 19, 2017

Package inca. February 13, 2018

Package tatest. July 18, 2018

Package ETC. February 19, 2015

Package nfca. February 20, 2015

Package PedCNV. February 19, 2015

Package texteffect. November 27, 2017

Package markophylo. December 31, 2015

Package ranger. November 10, 2015

IsoGeneGUI Package Vignette

Package PCGSE. March 31, 2017

Package strat. November 23, 2016

Package RLRsim. November 4, 2016

ROTS: Reproducibility Optimized Test Statistic

Package EMDomics. November 11, 2018

Package midastouch. February 7, 2016

Package farver. November 20, 2018

Package gee. June 29, 2015

Package TANDEM. R topics documented: June 15, Type Package

Package DiffCorr. August 29, 2016

Package OLScurve. August 29, 2016

Package cycle. March 30, 2019

Package biglars. February 19, 2015

Introductory Concepts for Voxel-Based Statistical Analysis

Package madsim. December 7, 2016

Package Funclustering

Data Analysis and Solver Plugins for KSpread USER S MANUAL. Tomasz Maliszewski

Package RcppBDT. August 29, 2016

Package RNAseqNet. May 16, 2017

Package missforest. February 15, 2013

Package VecStatGraphs3D

Package mpm. February 20, 2015

Package Modeler. May 18, 2018

Package CuCubes. December 9, 2016

Package bayescl. April 14, 2017

Package pwrrasch. R topics documented: September 28, Type Package

Package samplingdatacrt

Package cgh. R topics documented: February 19, 2015

Package Numero. November 24, 2018

Package RSKC. R topics documented: August 28, Type Package Title Robust Sparse K-Means Version Date Author Yumi Kondo

Package gpr. February 20, 2015

Package mlegp. April 15, 2018

Package RobustRankAggreg

Package Ridit. February 19, 2015

Package sbf. R topics documented: February 20, Type Package Title Smooth Backfitting Version Date Author A. Arcagni, L.

Package genelistpie. February 19, 2015

Package FCGR. October 13, 2015

Package Rsomoclu. January 3, 2019

Package fasttextr. May 12, 2017

Package nonlinearicp

Package MDSGUI. February 19, 2015

Package rococo. August 29, 2013

Package clustvarsel. April 9, 2018

Package ibm. August 29, 2016

Package globalgsa. February 19, 2015

Package RaPKod. February 5, 2018

Package jdx. R topics documented: January 9, Type Package Title 'Java' Data Exchange for 'R' and 'rjava'

Package rococo. October 12, 2018

Package cwm. R topics documented: February 19, 2015

Package longclust. March 18, 2018

Dimension reduction : PCA and Clustering

Package bigalgebra. R topics documented: February 19, 2015

Package addhaz. September 26, 2018

Package crmn. February 19, 2015

Package egonet. February 19, 2015

Package binmto. February 19, 2015

Transcription:

Type Package Package orqa February 20, 2015 Title Order Restricted Assessment Of Microarray Titration Experiments Version 0.2.1 Date 2010-10-21 Author Florian Klinglmueller Maintainer Florian Klinglmueller <float@lefant.net> Assess repeatability, accuracy and corss-platform agreement of titration microarray data based on order restricted inference procedures License GPL (>= 2) LazyLoad yes Depends Rcpp (>= 0.8.9), gtools (>= 2.6.1), genefilter (>= 1.24.3), nlme (>= 3.1-96) LinkingTo Rcpp SystemRequirements GNU make Repository CRAN Date/Publication 2010-12-16 09:31:30 NeedsCompilation yes R topics documented: orqa-package........................................ 2 e2test............................................ 3 est.lme............................................ 5 guo............................................. 6 misoreg........................................... 7 monotonicity........................................ 8 orqa............................................ 9 pttest............................................. 11 sigdire2test......................................... 12 sigdirpttest......................................... 13 Index 15 1

2 orqa-package orqa-package Order restricted quality assessment of microarray titration data orqa provides methods for quality assessment microarray titration data. These include permutation based trend and shape tests useful for the assessment of accuracy and cross platform consistency as well as methods for the estimation of variance components under order restrictions. orqa provides methods for quality assessment of microarray titration data. Exploiting the monotonic nature of such measurements accuracy, precision and cross-platform agreement can be derived. For the assessment of accuracy using shape tests see pttest. To evaluate precision using variance component estimates see est.lme. Order restricted inference of monotonic trends for the purpose of cross-platform comparison is provided by e2test. For an example see below. Florian Klinglmueller Maintainer: Florian Klinglmueller <float_at_lefant.net> References Klinglmueller, F., Tuechler, T., Posch, M. (2010) "Cross Platform Comparison Of Microarray Data Using Order Restricted Inference" Under Review Pinheiro, J., Bates, D., DebRoy, S., Sarkar, D.,R Development Core Team (2010) "nlme: Linear and Nonlinear Mixed Effects Models" Barlow, R. E., Bartholomew, D. J., Bremner, J. M., and Brunk, H. D. (1972) "Statistical inference under order restrictions"; Wiley, London. Robertson, T., Wright,F. T. and Dykstra, R. L. (1988) "Order Restricted Statistical Inference"; Wiley, New York. Guo W., Sarkar SK., Peddada SD. (2010) "Controlling False Discoveries in Multidimensional Directional Decisions, with Applications to Gene Expression Data on Ordered Categories" Biometrics ## Let s assume a titration study with 10 genes 4 titration groups and ## 10 replicates which come from either of 2 biologically different ## samples (i.e. two times 4 technical replicates) ## WARNING: examples are run with a very limited number of permutations ## Titration groups, random factor g <- rep(1:4,each=8) r <- rep(rep(1:2,each=4),4)

e2test 3 ## No differences (global null) nulldata <- matrix(rnorm(320),nc=32) ## Differences between titration levels in each gene altdata <- t(t(nulldata)+g) ## Accuracy are there any significantly non monotonous trends res <- pttest(nulldata,g,1000,r) # apply shape test ## no significant trends at all sigdirpttest(res) ## with alternatives res <- pttest(altdata,g,1000,r) # apply shape test ## some significant trends sigdirpttest(res) ## type of monotonicity (no significant trend, up, down, ## "anti-monotonous") table(monotonicity(res)) ## Precision - estimate variance components res <- est.lme(nulldata,g,r) round(apply(res,2,summary),2) res <- est.lme(altdata,g,r) round(apply(res,2,summary),2) ## Trend test and agreement ## some other dataset with some alternatives in both directions tdir <- sample((1:3)-2,10,rep=true) altdata2 <- matrix(rnorm(320),nc=32)+ (tdir %*% t(g)) res1 <- e2test(altdata,g,1000,r) res2 <- e2test(altdata2,g,1000,r) ## trinomial coding for directions (-1 down, 0 non sig., 1 up) sigdir1 <- sigdire2test(res1) sigdir2 <- sigdire2test(res2) ## contingency table of directional decisions table(sigdir1,sigdir2) e2test Perform permutation Barlow s test on a dataset

4 e2test This function computes Barlow s test for each line of a given matrix. The global null distribution is computed using permutation. FWE control is provided by the maxt procedure. e2test(data,g,b,rep=rep(1,length(g))) data g B rep a numeric matrix, for the lines of which we want to test the null of no trend across groups integer vector with group labels specified as ordered integers ranging from 1 to n where n is the number of ordered categories number of permutations or a permutation matrix integer vector with group labels ranging from 1 to m where m is the number of independent samples (e.g. individuals). The ordering is not important. e2test takes a matrix for each line of which the null hypotheses of no trend across ordered groups is tested using a permutation test based on Barlow s E2 statistic. By permuting only samples within independent entities of the experimental design, random factors such as technical replicates from the same sample material can be incorporated. Multiple testing control is provided by the maxt procedure. adj raw dir vector with FWE adjusted p.values for each null hypothesis vector with raw p.values vector with the direction of each decision Florian Klinglmueller <float_at_lefant.net> Part of this function is C code that has been ported by Korbinian Strimmer from R code originally written by Kaspar Rufibach. References Klinglmueller, F., Tuechler, T., Posch, M. (2010) "Cross Platform Comparison Of Microarray Data Using Order Restricted Inference" Under Review Barlow, R. E., Bartholomew, D. J., Bremner, J. M., and Brunk, H. D. (1972) "Statistical inference under order restrictions"; Wiley, London. Robertson, T., Wright,F. T. and Dykstra, R. L. (1988) "Order Restricted Statistical Inference"; Wiley, New York.

est.lme 5 data <- matrix(rnorm(7200),nc=72) groups <- rep(1:4,each=18) ind <- rep(rep(1:3,each=6),4) out <- e2test(data,groups,b=1000,rep=ind) sum(out$adj<.05) data2 <- data+matrix(rep(groups,nrow(data)),nr=nrow(data),byrow=true) out2 <- e2test(data2,groups,b=1000,rep=ind) sum(out2$adj<.05) est.lme Estimate order restricted variance components for a two way mixed model with interaction. Estimates variance components of a two way cross classification mixed model with an order restricted fixed effect, a random effect and random interaction term. est.lme(y,ia,ib) y ia ib a numeric matrix, for the lines of which univariate variance decompositions should be estimated integer vector of length ncol(y) specifying the ordered levels of the order restricted fixed effect as integers between 1 and n where n is the number of levels integer vector or factor specifying the levels of the random term (e.g. individuals) est.lme estimates the variance components for a two way cross classification mixed model with random interaction. The order restriction on the fixed effect used to improve the estimates by pooling levels of the fixed effect using isotonic regression according to the observed order in the measurements. Estimation is then done using functionality provided by the package <nlme>. sb sg se tss estimates of the random effect variance component estimates of the interaction term variance component estimates of the residual error variance total sum of squares (useful to obtain normalized scales between estimates from different measurements)

6 guo Florian Klinglmueller <float_at_lefant.net> References Klinglmueller, F., Tuechler, T., Posch, M. (2010) "Cross Platform Comparison Of Microarray Data Using Order Restricted Inference" Under Review Pinheiro, J., Bates, D., DebRoy, S., Sarkar, D.,R Development Core Team (2010) "nlme: Linear and Nonlinear Mixed Effects Models" Barlow, R. E., Bartholomew, D. J., Bremner, J. M., and Brunk, H. D. (1972) "Statistical inference under order restrictions"; Wiley, London. Robertson, T., Wright,F. T. and Dykstra, R. L. (1988) "Order Restricted Statistical Inference"; Wiley, New York. g <- rep(1:4,each=10) r <- rep(rep(1:2,each=5),4) ## No differences (global null) nulldata <- matrix(rnorm(400),nc=40) ## estimation res <- est.lme(nulldata,g,r) round(apply(res,2,summary),2) guo Mixed directional FDR controlled test decisions Compute mixed directional FDR controlled test decisions for raw p-values of multidimensional ordered tests guo(p,a) p a a numeric matrix, of raw p-values from multidimensional ordered tests. Each line corresponds to a group of ordered hypotheses e.g. t-tests between mean mesurements from consecutive levels of some ordered grouping variable. desired alpha level for the test

misoreg 7 guo implements the method proposed in Guo et al. (2010) that provides test decisions controlling the mixed directional FDR for multidimensional ordered tests. A matrix with test decisions TRUE corresponds to significant rejection of the null and FALSE to acceptance of the null. Florian Klinglmueller <float_at_lefant.net> References Klinglmueller, F., Tuechler, T., Posch, M. (2010) "Cross Platform Comparison Of Microarray Data Using Order Restricted Inference" Under Review Guo W., Sarkar SK., Peddada SD. (2010) "Controlling False Discoveries in Multidimensional Directional Decisions, with Applications to Gene Expression Data on Ordered Categories" Biometrics data <- matrix(rnorm(7200),nc=72) groups <- rep(1:4,each=18) ind <- rep(rep(1:3,each=6),4) out <- pttest(data,groups,b=1000,rep=ind) guo(out$unadj,.05) data2 <- data+matrix(rep(groups,nrow(data)),nr=nrow(data),byrow=true) out2 <- pttest(data2,groups,b=1000,rep=ind) guo(out2$unadj,.05) misoreg Apply isotonic regression to each line of a matrix This function calculates the isotonic regression (assuming an upward trend) for each line of a given matrix with a given vector of weights. It does so by using the C implementation of the pool adjacent violators algorithm provided in the package <fdrtool>, looping over the lines of the matrix in compiled C++ code. This implementation is approximately 2 orders of magnitude faster than using apply in R. misoreg(data, weights)

8 monotonicity data weights a numeric matrix, for the lines of which we want to calculate the isotonic regression a vector of same length as the columns of data defining the weights misoreg takes a matrix of values for the lines of which a weighted isotonic regression is to be computed. The weights are assumed to be equal for each line. result weights matrix with lines giving the isotonic regression fit for each line of the input matrix assuming an upward trend vector with original weights Florian Klinglmueller <float_at_lefant.net> Part of this function is C code that has been ported by Korbinian Strimmer from R code originally written by Kaspar Rufibach. Many thanks also to Romain Francois and Dirk Eddelbuettel for helping moving the code to the new Rcpp API. References Barlow, R. E., Bartholomew, D. J., Bremner, J. M., and Brunk, H. D. (1972) "Statistical inference under order restrictions"; Wiley, London. Robertson, T., Wright,F. T. and Dykstra, R. L. (1988) "Order Restricted Statistical Inference"; Wiley, New York. x <- matrix(rnorm(4000),nc=4) w <- c(3,6,3,6)/18 out <- misoreg(x,w) monotonicity Summarize results from pttest Translate results from pttest into the four categories: overall upward trend (up), overall downward trend (down), no significant trend (none), significant non-monotonicity (anti). monotonicity(o,alpha)

orqa 9 o alpha result object from pttest desired alpha level for the test Translate results from pttest into the four categories: overall upward trend (up), overall downward trend (down), no significant trend (none), significant non-monotonicity (anti). A vector of length corresponding to the number of tests coding each result as either "up","down","none", or "anti". Florian Klinglmueller <float_at_lefant.net> groups <- rep(1:4,each=18) ind <- rep(rep(1:3,each=6),4) tdir <- sample((1:3)-2,100,rep=true) data <- matrix(rnorm(7200),nc=72)+(tdir %*% t(groups)) out <- pttest(data,groups,b=1000,rep=ind) sigdir <- monotonicity(out) table(sigdir) orqa Order restricted quality assessment of microarray titration data orqa provides methods for quality assessment microarray titration data. These include permutation based trend and shape tests useful for the assessment of accuracy and cross platform consistency as well as methods for the estimation of variance components under order restrictions. orqa provides methods for quality assessment of microarray titration data. Exploiting the monotonic nature of such measurements accuracy, precision and cross-platform agreement can be derived. For the assessment of accuracy using shape tests see pttest. To evaluate precision using variance component estimates see est.lme. Order restricted inference of monotonic trends for the purpose of cross-platform comparison is provided by e2test. For an example see below.

10 orqa Florian Klinglmueller Maintainer: Florian Klinglmueller <float_at_lefant.net> References Klinglmueller, F., Tuechler, T., Posch, M. (2010) "Cross Platform Comparison Of Microarray Data Using Order Restricted Inference" Under Review Pinheiro, J., Bates, D., DebRoy, S., Sarkar, D.,R Development Core Team (2010) "nlme: Linear and Nonlinear Mixed Effects Models" Barlow, R. E., Bartholomew, D. J., Bremner, J. M., and Brunk, H. D. (1972) "Statistical inference under order restrictions"; Wiley, London. Robertson, T., Wright,F. T. and Dykstra, R. L. (1988) "Order Restricted Statistical Inference"; Wiley, New York. Guo W., Sarkar SK., Peddada SD. (2010) "Controlling False Discoveries in Multidimensional Directional Decisions, with Applications to Gene Expression Data on Ordered Categories" Biometrics ## Let s assume a titration study with 10 genes 4 titration groups and ## 10 replicates which come from either of 2 biologically different ## samples (i.e. two times 4 technical replicates) ## WARNING: examples are run with a very limited number of permutations ## Titration groups, random factor g <- rep(1:4,each=8) r <- rep(rep(1:2,each=4),4) ## No differences (global null) nulldata <- matrix(rnorm(320),nc=32) ## Differences between titration levels in each gene altdata <- t(t(nulldata)+g) ## Accuracy are there any significantly non monotonous trends res <- pttest(nulldata,g,1000,r) # apply shape test ## no significant trends at all sigdirpttest(res) ## with alternatives res <- pttest(altdata,g,1000,r) # apply shape test ## some significant trends sigdirpttest(res) ## type of monotonicity (no significant trend, up, down,

pttest 11 ## "anti-monotonous") table(monotonicity(res)) ## Precision - estimate variance components res <- est.lme(nulldata,g,r) round(apply(res,2,summary),2) res <- est.lme(altdata,g,r) round(apply(res,2,summary),2) ## Trend test and agreement ## some other dataset with some alternatives in both directions tdir <- sample((1:3)-2,10,rep=true) altdata2 <- matrix(rnorm(320),nc=32)+ (tdir %*% t(g)) res1 <- e2test(altdata,g,1000,r) res2 <- e2test(altdata2,g,1000,r) ## trinomial coding for directions (-1 down, 0 non sig., 1 up) sigdir1 <- sigdire2test(res1) sigdir2 <- sigdire2test(res2) ## contingency table of directional decisions table(sigdir1,sigdir2) pttest Perform permutation t-tests between consecutive levels of ordered groups This function computes permutation t-tests for differences in each line of a matrix between consecutive levels of an ordered grouping variable. pttest(data,g,b,rep=rep(1,length(g))) data g B rep a numeric matrix, for the lines of which we want to test the null of no trend across groups integer vector with group labels for the ordered categories coded as integers between 1 and n, where n is the number of ordered categories number of permutations or a list of permutation matrices integer vector with group labels ranging from 1 to m where m is the number of independent samples (e.g. individuals). The ordering is not important.

12 sigdire2test pttest takes a matrix and for each line computes a permutation t-test between consecutive levels of an ordered grouping variable. Random factors e.g. technical replicates can be specified and will be accounted for by permuting samples only within independent units of this factor. A matrix with raw permutation p-values as well as a matrix with the directional decisions are returned. See guo and sigdirpttestfor a way to get test decisions with control over the mixed directional false discovery rate. raw dir matrix with raw p.values matrix with the direction of each decision Florian Klinglmueller <float_at_lefant.net> References Klinglmueller, F., Tuechler, T., Posch, M. (2010) "Cross Platform Comparison Of Microarray Data Using Order Restricted Inference" Under Review Guo W., Sarkar SK., Peddada SD. (2010) "Controlling False Discoveries in Multidimensional Directional Decisions, with Applications to Gene Expression Data on Ordered Categories" Biometrics data <- matrix(rnorm(7200),nc=72) groups <- rep(1:4,each=18) ind <- rep(rep(1:3,each=6),4) out <- pttest(data,groups,b=1000,rep=ind) guo(out$unadj,.05) data2 <- data+matrix(rep(groups,nrow(data)),nr=nrow(data),byrow=true) out2 <- pttest(data2,groups,b=1000,rep=ind) guo(out2$unadj,.05) sigdire2test Summarize results from e2test Translate results from e2test into trinomial coding where 1 signifies an upward trend, 0 a none significant result, and -1 a downward trend. sigdire2test(o,alpha)

sigdirpttest 13 o alpha result object from e2test desired alpha level for the test Translate results from e2test into trinomial coding where 1 signifies an upward trend, 0 a none significant result, and -1 a downward trend. a vector of length corresponding to the number of tests coding each result as either 1,0, or -1. Florian Klinglmueller <float_at_lefant.net> groups <- rep(1:4,each=18) ind <- rep(rep(1:3,each=6),4) tdir <- sample((1:3)-2,100,rep=true) data <- matrix(rnorm(7200),nc=72)+(tdir %*% t(groups)) out <- e2test(data,groups,b=1000,rep=ind) sigdir <- sigdire2test(out) table(sigdir) sigdirpttest Summarize results from pttest Translate results from pttest into trinomial coding where 1 signifies an upward trend, 0 a none significant result, and -1 a downward trend. sigdirpttest(o,alpha) o alpha result object from pttest desired alpha level for the test Translate results from e2test into trinomial coding where 1 signifies an upward trend, 0 a none significant result, and -1 a downward trend.

14 sigdirpttest a matrix with rows corresponding to the number of tests and columns corresponding to the number treatment groups coding each result as either 1,0, or -1. Florian Klinglmueller <float_at_lefant.net> groups <- rep(1:4,each=18) ind <- rep(rep(1:3,each=6),4) tdir <- sample((1:3)-2,100,rep=true) data <- matrix(rnorm(7200),nc=72)+(tdir %*% t(groups)) out <- pttest(data,groups,b=1000,rep=ind) sigdir <- sigdirpttest(out) head(sigdir)

Index Topic package orqa, 9 orqa-package, 2 Topic regression e2test, 3 est.lme, 5 guo, 6 misoreg, 7 monotonicity, 8 pttest, 11 sigdire2test, 12 sigdirpttest, 13 e2test, 2, 3, 9, 12, 13 est.lme, 2, 5, 9 guo, 6, 12 misoreg, 7 monotonicity, 8 orqa, 9 orqa (orqa-package), 2 orqa-package, 2 pttest, 2, 8, 9, 11, 13 sigdire2test, 12 sigdirpttest, 12, 13 15