Power Calculations for Assigning Patients to RD Risk Groups in the Validation Cohort ======================================================== Susan L. Tucker ```{r options, echo=FALSE} opts_chunk$set(tidy=TRUE, message=TRUE) ``` ## 1 Executive Summary ### 1.1 Introduction The goal of this analysis is to perform power calculations needed to select a method for assigning patients to high-risk versus lower-risk residual disease (RD) groups in our validation study. ### 1.2 Data \& Methods ### 1.2.1 Planned validation test In our validation study, we measured FABP4 expression levels by qRT-PCR for 139 tumor samples. To test our hypothesis that RD occurs more frequently among patients with high FABP4 levels, we will compare RD incidence in subgroups of patients predicted to be at high risk versus lower risk of RD. Specifically, we will assign a pre-determined number of patients (nHigh) to the high risk group, and the remaining patients (139 - nHigh) to the low risk group. A 1-sided Fisher's exact test will be used to compare the incidence of RD in the two risk groups. Therefore, the specific goal of this report is to select a value for nHigh, based on power calculations. ### 1.2.2 Power calculations The power calculation proceeds as follows. Using a binomial random-number generator, we randomly generate outcomes (RD versus no RD) based on assumed probabilities of RD in the high-risk and low-risk groups. The observed (randomly generated) RD rates in the high and low risk groups are compared using the 1-sided Fisher exact test. The test is considered a success if P<0.05. The two steps described above are repeated for a total of 10,000 simulations, and the proportion of successful tests (the estimated power of the test) is recorded. ### 1.2.3 Selecting probabilities In performing the power calculations, we assume that the overall probability of RD in the validation cohort (pRD) is 75%, based on the observed RD rates of 77% (378/491) and 73% (136/186) in the TCGA and Tothill data sets, respectively. To determine an appropriate value for the probability of RD in the high-risk group (pRDhigh), we compute the positive predictive value (PPV = proportion of patients with RD in the high-risk group) in the TCGA and Tothill data sets as a function of the call rate (the proportion of patients assigned to the high-risk group). PPV will serve as an estimate of pRDhigh. We note that the probability of RD in the low-risk group (pRDlow) can be computed from pRD and pRDhigh, as described later in this report, so it need not be specified separately in performing the power calculations. ### 1.2.4 Data used To compute PPV as a function of call rate in the TCGA and Tothill data sets, we use the RData objects containing clinical and gene expression data that were created in previous reports (assembleTCGAClinical, assembleTothillClinical). Patients are filtered as described previously (filterTCGASamples, filterTothillSamples). ### 1.3 Results The power calculations show that assigning 20%, 25% or 30% of patients to the high-risk group would likely provide very high power (>90%) of achieving success in our validation study provided PPV values are at the high end of the range seen in the TCGA and Tothill data sets. For PPV values on the low end of the range seen for TCGA and Tothill, call rates of 20% or 30% would likely provide relatively low power (50-60%). For a call rate of 25%, the calculations suggest that the power will be reasonably high (>76%) for any value of PPV falling within the range observed for TCGA and Tothill. ### 1.4 Conclusion Based on the power calculations, we elect to assign the 25% of patients with the highest FABP4 values to our predicted high-risk group. ## 2 Loading \& Filtration of Data The TCGA and Tothill data objects created previously are loaded. ```{r loadData} load(file.path("RDataObjects","tcgaExpression.RData")) load(file.path("RDataObjects","tcgaClinical.RData")) load(file.path("RDataObjects","tcgaFilteredSamples.RData")) load(file.path("RDataObjects","tothillExpression.RData")) load(file.path("RDataObjects","tothillClinical.RData")) load(file.path("RDataObjects","tothillFilteredSamples.RData")) ``` Filtrations are applied to the TCGA data. ```{r tcgaFilter} tcgaSampleUseLong <- rownames(tcgaFilteredSamples[which(tcgaFilteredSamples[,"sampleUse"]=="Used"),]) tcgaSampleUse <- substr(tcgaSampleUseLong,1,12) tcgaRDUse <- tcgaRD[tcgaSampleUse] tcgaExprUse <- tcgaExpression[,tcgaSampleUseLong] colnames(tcgaExprUse) <- tcgaSampleUse ``` Filtrations are applied to the Tothill data. ```{r tothillFilter} tothillSampleUse <- rownames(tothillFilteredSamples[which(tothillFilteredSamples[,"sampleUse"]=="Used"),]) tothillRDUse <- tothillRD[tothillSampleUse] tothillExprUse <- tothillExpression[,tothillSampleUse] ``` ## 3 Analyses ### 3.1 Positive predictive value (PPV) in TCGA and Tothill Before performing power calculations, we calculate PPV in the TCGA and Tothill data sets as a function of the proportion of patients assigned to the high risk group based on FABP4 expression levels. We first obtain the vectors of FABP4 expression values for the two data sets. ```{r getFABP4, message=FALSE} library(hthgu133a.db) probeFABP4 <- names(which(unlist(mget(rownames(tcgaExprUse), hthgu133aSYMBOL)) == "FABP4")) probeFABP4 tcgaFABP4 <- tcgaExprUse[probeFABP4,] tothillFABP4 <- tothillExprUse[probeFABP4,] ``` We next sort the vectors by FABP4 expression level. ```{r sortFABP4} tcgaFABP4sorted <- tcgaFABP4[order(tcgaFABP4)] tcgaRDsorted <- tcgaRDUse[order(tcgaFABP4)] tothillFABP4sorted <- tothillFABP4[order(tothillFABP4)] tothillRDsorted <- tothillRDUse[order(tothillFABP4)] ``` PPV is computed and plotted as a function of call rate. ```{r plotPPV} tcgaNPts <- length(tcgaFABP4) tcgaPctCall <- seq(from = tcgaNPts, to = 1, by = -1) tcgaPPV <- c() for (i in 1:tcgaNPts) { tcgaPPV <- c(tcgaPPV, length(which(tcgaRDsorted[i:tcgaNPts] == "RD"))) } tcgaPPV <- 100 * tcgaPPV/tcgaPctCall tcgaPctCall <- 100 * tcgaPctCall/tcgaNPts tothillNPts <- length(tothillFABP4) tothillPctCall <- seq(from = tothillNPts, to = 1, by = -1) tothillPPV <- c() for (i in 1:tothillNPts) { tothillPPV <- c(tothillPPV, length(which(tothillRDsorted[i:tothillNPts] == "RD"))) } tothillPPV <- 100 * tothillPPV/tothillPctCall tothillPCall <- 100 * tothillPctCall/tothillNPts plot(tcgaPctCall, tcgaPPV, type = "l", xlab = "Patients Assigned to High-risk Group (%)", ylab = "Positive Predictive Value (%)", ylim = c(70, 100), lwd=2) lines(tothillPctCall, tothillPPV, col = c("red"), lwd=2) legend(x = 50, y = 75, legend = c("TCGA", "Tothill et al."), lty = c(1,1), lwd=2, col=c("black","red")) ``` ### 3.2 Power calculations The following notation is used here: