 Software
 Open Access
 Published:
permGPU: Using graphics processing units in RNA microarray association studies
BMC Bioinformatics volumeÂ 11, ArticleÂ number:Â 329 (2010)
Abstract
Background
Many analyses of microarray association studies involve permutation, bootstrap resampling and crossvalidation, that are ideally formulated as embarrassingly parallel computing problems. Given that these analyses are computationally intensive, scalable approaches that can take advantage of multicore processor systems need to be developed.
Results
We have developed a CUDA based implementation, permGPU, that employs graphics processing units in microarray association studies. We illustrate the performance and applicability of permGPU within the context of permutation resampling for a number of test statistics. An extensive simulation study demonstrates a dramatic increase in performance when using permGPU on an NVIDIA GTX 280 card compared to an optimized C/C++ solution running on a conventional Linux server.
Conclusions
permGPU is available as an opensource standalone application and as an extension package for the R statistical environment. It provides a dramatic increase in performance for permutation resampling analysis in the context of microarray association studies. The current version offers six test statistics for carrying out permutation resampling analyses for binary, quantitative and censored timetoevent traits.
Background
Many resampling algorithms used in microarray association studies can be formulated within the framework of embarrassingly parallel problems in the sense that the algorithm can be split up into smaller components which can be completed mutually independently of each other [1]. Standard algorithms used in this context include permutation and bootstrap resampling, and crossvalidation. These algorithms consist of replicates which can be processed independently of each other. Furthermore, each replicate consists of the calculation of a large number of test statistics. The calculation of these test statistics can often be divided into independent parts. There are several protocols, including MPI [2] and OpenMP [3], that facilitate parallel programming for these algorithms.
Due to their highly parallel structure, Graphics Processing Units (GPU) are more effective than generalpurpose Central Processing Units (CPU) for a set of algorithms widely used in the quantitative biomedical sciences. This has been demonstrated by using GPUs for example in feature detection in proteomics experiments [4], analysis of epistasis [5], statistical phylogenetics [6], and sequence alignment algorithms [7â€“10]. The R [11] extension package gputools [12] provides GPU enabled implementations of a set of commonly used functions for analysis of microarray data. Another attractive feature of using a GPU is that the hardware is relatively inexpensive, currently ranging from $400 to $800 for consumer grade cards (e.g., GTX 280, GTX 295) and $1200 to $2500 for highend cards (e.g., Firestream 9270, Tesla C1060, Tesla C2050), compared to highend multicore workstations or cluster farms. GPU hardware can be easily added to existing workstations.
The primary focus of many published microarray association studies is the identification of genes differentially expressed with respect to a binary trait. An extensively cited example is the data set reported by Golub et al [13] who identified genes differentially expressed in Acute Myeloid Leukemia (AML) and Acute Lymphoblastic Leukemia (ALL). For many microarray experiments, especially those in cancer, the primary endpoint of interest is not a binary outcome but rather a censored timetoevent outcome such as time to death or time to relapse. An example is the data set reported by Beer et al [14] who identified genes associated with survival in earlystage Lung Adenocarcinoma. More recently, the Director's Challenge Consortium (DCC) for the Molecular Classification of Lung Adenocarcinoma reported predictive models for survival, based on gene expression profiles and clinical data from 442 patients with Adenocarcinoma Lung Cancer [15]. The Repository of Molecular Brain Neoplasia Data (Rembrandt) database currently provides 566 gene expression arrays and survival outcomes from brain cancer patients [16]. In this context, cases for which the event of interest is not realized (e.g., patients who are still alive) at the time of the analysis are censored. Specifically, let Y^{0} denote the time of event and let C be the censoring time. What is observed is not Y^{0} but rather Y = min{Y^{0}, C} along with event indicator Î” = (Y^{0} <C). The censoring times vary among patients since they are registered to studies at different times. A proper analysis must take into account not only the distribution of Y^{0}, called the survival distribution, but also the censoring mechanism induced by the distribution of the censoring time C. A popular approach for analyzing timetoevent outcomes is to dichotomize the outcome at a given landmark, say Ï„ > 0, that is believed to be clinically and biologically relevant [17]. For example, suppose that for a specific cohort of early stage Lung Adenocarcinoma patients, the median survival time Ï„ = 5 years. In this case, one may categorize patients who live less than five years as high risk and those who live at least five years as low risk. This type of simplification allows for the use of methods and software tools developed for binary outcomes, but is not an optimal approach as the censoring mechanism is entirely ignored while the survival distribution is considered only at a single timepoint (i.e., at Ï„ = 5 years). In a recent article, Subramanian and Simon [17] conducted a critical review of sixteen published prognostic signatures in lung cancer and provided guidelines for statistical analysis in this context. Avoiding this type of binary transformation is the first item in this set of guidelines. Thus, software tools which can expeditiously conduct largescale association testing for censored timetoevent outcomes are of great importance.
In this paper, we present a Compute Unified Device Architecture (CUDA) [18] framework, permGPU, that employs GPUs in microarray association studies. We illustrate the performance and applicability of permGPU within the context of permutation resampling for a number of test statistics. The software is provided as a standalone application that can be used to carry out permutation resampling inference for binary (e.g., case versus control), quantitative (e.g., blood pressure) or censored timetoevent (e.g., time to death) traits. For wider use, we also have integrated permGPU into the R statistical environment as an extension package. The source code along with documentation is provided in Additional File 1. Updates will be available from http://code.google.com/p/permgpu/.
Implementation
We illustrate our framework using a simulation study by implementing a singlestep multiple testing procedure based on the maximum statistic as described in [19] and [20]. The CUDA toolkit from NVIDIA, a minimal set of extensions to the C and C++ languages, is used for programming on a GTX 280 GPU, with 240 processor cores and 1 GB of memory. For comparison, we carry out a timing analysis based on a single CPU. The CPU code is compiled using g++ version 4.3.2 with 03 and funrollloops, while the GPU code is compiled using nvcc with 02 and use_fast_math optimization flags. The current implementation is designed for CUDA enabled GPUs.
Both the GPU and CPU analyses are carried out on a 2.83 GHz Intel(R) Core(TM)2 Quad CPU Q9550 with 4 GB RAM of memory using the AMD64 Linux operating system. For wider applicability to the research community, we integrated permGPU into an R extension package. This implementation has been developed and tested on R version 2.10.1.
The geneexpression matrix X is of dimension n Ã— K, where K is the number of genes, or other features, and n is the number of patients. The vector of outcomes is denoted by Y while the test statistic for testing the hypothesis of marginal association between feature k and the outcomes is denoted as T_{ k }. We consider test statistics where the critical region is of the form {T_{ k } > Î¾} for some Î¾ > 0. For a given familywise error rate (FWER) Î± âˆˆ (0, 1), we determine the critical value Î¾ > 0 such that under the hypothesis that no feature is associated with the outcome. The null sampling distribution is approximated using permutation resampling as follows:

1.
Compute the K statistics T_{1}, ..., T_{ K }based on YX^{1}, ..., YX^{K}.

2.
Let be a random permutation of Y.

3.
Compute , permutation replicates of the test statistics, based on X^{1}, ..., X^{K}.

4.
Compute

5.
Repeat the last three steps B  1 additional times.
The unadjusted and FWER adjusted twosided permutation Pvalues are computed as and respectively, where I[Â·] is the indicator function.
The code implementing our algorithm is a combination of kernels (GPU) and functions (CPU). While most of the calculations for the test statistics are carried out as kernels on the GPU, some of the calculations are relegated to functions on the CPU. The results of these functions are then copied to the GPU. For example, the random shuffling of the outcome is carried out only once per permutation. Therefore, we found it more efficient to permute the outcome vector on the CPU and then copy the result to the GPU. The components of the code that compute the K test statistics, their maximum and Pvalues, are separate kernels. The kernel that computes the K test statistics is the most computationally expensive. Global memory reads and computation are the primary bottlenecks for speed. To increase global memory read speed, we allocate X and other auxiliary data types via the function cudaMallocPitch(), thus automatically assuring aligned memory access. The random numbers are generated on the CPU. The data is copied between the CPU and GPU using standard CUDA library functions.
Results
We illustrate the timing performance of our approach using an extensive simulation study considering the t test statistic, for twosample problems, the Pearson test statistic, for continuous outcomes, and the Cox rank score test statistic [21], for censored timetoevent outcomes. The gene expression matrices are obtained by simulating n Ã— K mutually independent and identically distributed standard normal variates where n = 100, ..., 1000 and K = 60000. For the twosample case, the groups are drawn from a Bernoulli law with mean 0.5. For the continuous case, the outcomes are drawn from a standard normal law. For the time to event case, the expected censoring rate is set to 0.3. The illustrations for the t and Pearson test statistics are based on B = 10000 permutations. The CPU approach for the Cox rank score test statistic is prohibitively slow for large problems. For (n, K) = (1000, 60000), an analysis based on a mere B = 10 replicates takes approximately 21 minutes versus only 16 seconds on the GPU. The CPU/GPU execution time ratios along with the GPU times (measured in seconds) are shown in Figure 1. It can be seen that the biggest speed increase is in the case of the survival test, where speedup factors of 78 can be observed. Next, we illustrate an application of permGPU by conducting an analysis of the DCC [15] data set. For this illustration, we limit our attention to finding genes associated with survival. The analyses presented here are based on gene expression profiles and survival data from n = 442 patients from this data set. The observed death rate is 0.53 (236 out of 442) and the estimated median survival time is 70.5 months. The biospecimens are profiled on the Affymetrix GeneChip^{Â®} Human Genome U133A 2.0 array which profiles the RNA using K = 22283 probe sets. To conduct the analysis, we preprocessed the array source files (*.CEL) using the RMA algorithm [22]. We tested the association between the expression level of each of the K = 22283 probe sets with survival using the Cox score test with B = 10000 permutation replicates. In Table 1, we list the probe sets significant at most 0.05 twosided FWER level. In addition to the observed test statistic, the unadjusted and FWERadjusted permutation Pvalues, and the gene symbol and description linked to the probe set are provided. Using our GPU approach, the time required to conduct the analysis is about 20.1 minutes while the corresponding time based on the CPU approach is about 14.7 hours suggesting a time reduction factor in the order of 43.
Discussion
Although we have limited the discussions to three tests, our approach can be applied to most tests used for analyzing highdimensional data. Currently, our code also implements the Wilcoxon, Spearman and Cox score statistics, and can be extended using other test statistics including the family of score tests. The existing six test statistics can be used as a starting template. This may not be the most computationally efficient approach. It may however serve as an appropriate reference point. As in the case of the existing six test statistics, the most efficient code for any given test statistic must take full advantage of the computational resources offered by both the CPU and GPU and therefore should most likely consist of a combination of kernels and functions.
Permutation resampling to control FWER is one approach to address multiple testing for highdimensional data. Our method can be easily extended to use the bootstrap via resampling with replacement. The falsediscovery rate (FDR) [23] is another framework for adjusting for multiplicity. Our framework can be modified by omitting the calculation of the FWER adjusted Pvalues and applying any FDR algorithm to the unadjusted permutation Pvalues.
In many studies, including Shedden et al [15], the primary interest is not the identification of significant features but rather the building of predictive models. It is neither appropriate nor practical to build the model using all features. Feature selection is typically used to identify, from the training data, a set of features, which are marginally important based on some criterion. Note that the feature selection needs to be redone for each crossvalidation training set. Our framework can be customized to speedup the feature selection by recomputing the test statistic T_{ k }based on the training set.
It may be argued that for microarray data sets the permutation analysis only needs to be done once and that the gain in speed is not practically important. In practice, however, one does not carry out a single analysis but rather a series of analyses to assess the implications of using a specific test statistic or preprocessing method. As a case in point, consider the analysis of the DCC data based on the Cox score statistic. As illustrated in [21], the test procedure is robust with respect to the survival distribution, but is not robust with respect to the marginal distributions of the gene expressions and is thus sensitive to outliers. The Cox rank score statistic [21], already implemented by permGPU, can be used to conduct a robust analysis. If considerable discrepancies between the sets of results from these two test statistics are observed, then one may need to be concerned about the presence of outliers in the microarray data. Furthermore, as pointed out in [24], microarray association analyses are sensitive to the preprocessing method used, especially in the presence of batch effects or outliers. For example, the DCC data set is comprised of specimens and clinical data provided by four institutions. Thus, one should be concerned not only about batch effects among the four sets of arrays but also about differences among the study populations and treatments. The conduct of, say, three additional analyses will bring the total time expenditure to almost 2.5 days in contrast to 1.5 hours on the GPU.
Finally, as illustrated in [25], for power and samplesize calculations, the permutation analysis needs to be repeated N times. Our approach can be extended to accommodate this type of analysis. For (n, K) = (600, 60000) and B = 10000, our GPU Pearson algorithm takes about 12 seconds. A power analysis based on B = 10000 and N = 1000 would then be expected to take less than 4 hours. Since the projected speedup time factor for this case is about 36, the expected time for completion on the CPU would exceed 5 days.
Conclusions
A CUDA based implementation for deploying GPUs in RNA microarray association studies has been presented. Our implementation can be customized by incorporating other statistical tests and scales readily with GPU cores. An extension for incorporating our framework into the R statistical environment has been developed. Dramatic increase in speed in comparison to an optimized C/C++ code was demonstrated. The increased speed becomes more pronounced when the test statistic is computationally complex or the data set size is large, which makes our algorithm ideal for handling large genomic data sets. This is a practical framework that can be easily implemented using relatively inexpensive hardware.
Availability and requirements

Project name: permGPU

Project home page: http://code.google.com/p/permgpu/

Operating system: Linux AMD64

Programming language: CUDA, C/C++ and R

Other requirements: CUDA SDK and Toolkit 2.0 or higher; gcc/g++ 4.3.2; R http://www.Rproject.org 2.10.1; Biobase http://www.bioconductor.org 2.6.1

License: GPL v3
Abbreviations
 CPU:

Central Processing Unit
 CUDA:

Compute Unified Device Architecture
 GPL:

General Public License
 GPU:

Graphics Processing Unit
 FDR:

False Discovery Rate
 FWER:

FamilyWise Error Rate
 GTX 280:

NVIDIA GeForce GTX 280
 MPI:

Message Passing Interface
 OpenMP:

Open MultiProcessing
 RNA:

Ribonucleic Acid
 SDK:

Software Development Kit.
References
Foster I: Designing and Building Parallel Programs: Concepts and Tools for Parallel Software Engineering. AddisonWesley; 1995.
The Message Passing Interface (MPI) standard[http://www.mcs.anl.gov/research/projects/mpi/]
The OpenMP API specification for parallel programming[http://openmp.org/wp/]
Hussong R, Gregorius B, Tholey A, Hildebrandt A: Highly accelerated feature detection in proteomics data sets using modern graphics processing units. Bioinformatics 2009, 25: 1937â€“1943. 10.1093/bioinformatics/btp294
SinnottArmstrong NA, Greene CS, Cancare F, Moore JH: Accelerating epistasis analysis in human genetics with consumer graphics hardware. BMC Bioinformatics 2009., 2:
Suchard MA, Rambaut A: Manycore algorithms for statistical phylogenetics. Bioinformatics 2009, 25: 1370â€“1376. 10.1093/bioinformatics/btp244
Schatz MC, Trapnell C, Delcher AL, Varshney A: Highthroughput sequence alignment using Graphics Processing Units. BMC Bioinformatics 2007., 8: 10.1186/147121058474
Manavski S, Valle G: CUDA compatible GPU cards as efficient hardware accelerators for SmithWaterman sequence alignment. BMC Bioinformatics 2008., 9: 10.1186/147121059S2S10
Jung S: Parallelized pairwise sequence alignment using CUDA on multiple GPUs. BMC Bioinformatics 2009., 10: 10.1186/1471210510164
Liu Y, Maskell DL, Schmidt B: CUDASW++: Optimizing SmithWaterman sequence database searches for CUDAenabled graphics processing units. BMC Bioinformatics 2009., 2:
R Development Core Team:R: A Language and Environment for Statistical Computing. R Foundation for Statistical Computing, Vienna, Austria; 2009. [ISBN 3â€“900051â€“07â€“0] [http://www.Rproject.org] [ISBN 3900051070]
Buckner J, Wilson J, Seligman M, Athey B, Watson S, Meng F:The gputools package enables GPU computing in R. Bioinformatics 2010, 26: 134â€“135. 10.1093/bioinformatics/btp608
Golub T, Slonim D, Tamayo P, Huard C, Gaasenbeek M, Mesirov J, Coller H, Loh M, Downing J, Caligiuri M, Bloomfield C, Lander E: Molecular Classification of Cancer: Class discovery and class prediction by gene expression monitoring. Science 1999, 286(5439):531â€“537. 10.1126/science.286.5439.531
Beer DG, Kardia SLR, Huang CC, Giordano TJ, Levin AM, Misek DE, Lin L, Chen G, Gharib TG, Thomas DG, Lizyness ML, Kuick R, Hayasaka S, Taylor JMG, Iannettoni MD, Orringer MB, Hanash S: Geneexpression profiles predict survival of patients with lung adenocarcinoma. Nat Med 2002, 8(8):816â€“824.
for the Molecular Classification of Lung Adenocarcinoma DCC, Shedden K, Taylor JMG, Enkemann SA, Tsao MS, Yeatman TJ, Gerald WL, Eschrich S, Jurisica I, Giordano TJ, Misek DE, Chang AC, Zhu CQ, Strumpf D, Hanash S, Shepherd FA, Ding K, Seymour L, Naoki K, Pennell N, Weir B, Verhaak R, LaddAcosta C, Golub T, Gruidl M, Sharma A, Szoke J, Zakowski M, Rusch V, Kris M, Viale A, Motoi N, Travis W, Conley B, Seshan VE, Meyerson M, Kuick R, Dobbin KK, Lively T, Jacobson JW, Beer DG: Gene expressionbased survival prediction in lung adenocarcinoma: a multisite, blinded validation study. Nat Med 2008, 14(8):822â€“827. 10.1038/nm.1790
Madhavan S, Zenklusen J, Kotliarov Y, Sahni H, Fine H, Buetow K: Rembrandt: helping personalized medicine become a reality through integrative translational research. Mol Cancer Res 2009, 7(2):157â€“167. 10.1158/15417786.MCR080435
Subramanian J, Simon R: Gene expressionbased prognostic signatures in lung cancer ready for clinical use? J Natl Cancer Inst 2010, 102: 1â€“11. 10.1093/jnci/djp493
NVIDIA: Compute unified device architecture (CUDA) programing guide. 2008. [Version 2.2] [Version 2.2]
Westfall PH, Young SS: ResamplingBased Multiple Testing: Examples and Methods for Pvalue Adjustment. New York: WileyInterscience; 1993.
Ge Y, Dudoit S, Speed TP: Resamplingbased multiple testing for microarray data analysis. TEST 2003, 12: 1â€“44. 10.1007/BF02595811
Jung SH, Owzar K, George SL: A multiple testing procedure to associate gene expression levels with survival. Statistics in Medicine 2005, 24: 3077â€“3088. 10.1002/sim.2179
Irizarry R, Hobbs B, Collin F, BeazerBarclay Y, Antonellis K, Scherf U, Speed T: Exploration, normalization, and summaries of high density oligonucleotide array probe level data. Biostatistics 2003, 4(2):249â€“264. 10.1093/biostatistics/4.2.249
Benjamini Y, Hochberg Y: Controlling the false discovery rate: A practical and powerful approach to multiple testing. JR Statist Soc B 1995, 57: 289â€“300.
Owzar K, Barry WT, Jung SH, Sohn I, George SL: Statistical challenges in preprocessing in microarray experiments in cancer. Clin Cancer Res 2008, 14(19):5959â€“5966. 10.1158/10780432.CCR074532
Jung SH, Bang H, Young SS: Sample size calculation for multiple testing in microarray data analysis. Biostatistics 2005, 6: 157â€“169. 10.1093/biostatistics/kxh026
Acknowledgements
The authors thank a reviewer for comments and suggestions, which substantially improved the manuscript, and thank John Pormann and Tom Milledge of the Duke Scalable Computing Support Center for providing GPU support. Partial support for this research was provided by grants from the National Cancer Institute (CA142538 and CA33601).
Author information
Authors and Affiliations
Corresponding author
Additional information
Competing interests
The authors declare that they have no competing interests.
Authors' contributions
IDS conceptualized the research, designed, programmed, optimized and tested the algorithm, and drafted the manuscript; SHJ contributed to the research and critically revised the manuscript; SLG contributed to the research, provided funding and critically revised the manuscript; KO proposed and conceptualized the research, and drafted the manuscript. All authors read and approved the final manuscript.
Electronic supplementary material
12859_2010_3786_MOESM1_ESM.GZ
Additional file 1: Supplementary Material for: " permGPU : Using graphics processing units in RNA microarray association studies". The compressed tar archive contains the source code for the examples discussed in "permGPU: Using graphics processing units in RNA microarray association studies" by Shterev et al. It also contains a tutorial for compiling and executing the code. The development version of the code is available for download from http://code.google.com/p/permgpu/. (GZ 261 KB)
Authorsâ€™ original submitted files for images
Below are the links to the authorsâ€™ original submitted files for images.
Rights and permissions
Open Access This article is published under license to BioMed Central Ltd. This is an Open Access article is distributed under the terms of the Creative Commons Attribution License ( https://creativecommons.org/licenses/by/2.0 ), which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.
About this article
Cite this article
Shterev, I.D., Jung, SH., George, S.L. et al. permGPU: Using graphics processing units in RNA microarray association studies. BMC Bioinformatics 11, 329 (2010). https://doi.org/10.1186/1471210511329
Received:
Accepted:
Published:
DOI: https://doi.org/10.1186/1471210511329
Keywords
 Graphic Processing Unit
 Global Memory
 Compute Unify Device Architecture
 Extension Package
 Central Processing Unit