Docsity

A Parallel Approach to Microarray Preprocessing and Analysis - Handout | 22S 295, Study notes of Statistics

Partial preview of the text

Download A Parallel Approach to Microarray Preprocessing and Analysis - Handout | 22S 295 and more Study notes Statistics in PDF only on Docsity!

Microarray Parallelization

A Parallel Approach to Microarray Preprocessing

and Analysis

Patrick Breheny

Microarray Parallelization Preprocessing Analysis

Outline

Introduction

Preprocessing

Analysis

Microarray Parallelization Preprocessing Analysis

Purifying and labeling RNA

Measuring of the amount of RNA corresponding to specific

genes requires a number of steps, each of which introduces

noise

First, the RNA from a sample must be purified (a process

taking several days of laboratory work)

Next, the RNA must be labeled with a fluorescent dye so that

we can quantify its concentration with a scanner

Microarray Parallelization Preprocessing Analysis

Probes

A common approach to identifying the RNA from specific genes is

through the use of oligonucleotide probes

Microarray Parallelization Preprocessing Analysis

Statistical issues

The prominent statistical issues are:

Is there an experimental bias favoring some types of probes?

Does a measurement of “100” on one microarray mean the

same thing as a measurement of “100” on a different

microarray?

What are we going to do with the 22 measurements per gene?

Microarray Parallelization Preprocessing Analysis

Statistical issues (cont’d)

An ideal analysis would integrate measurement error into the

eventual analysis. However, this is generally not done for two

practical reasons:

Can no longer run conventional statistical analyses

A vector of probe-level intensities from a single microarray

occupies 4 MB of system memory

Microarray Parallelization Preprocessing Analysis

Background Adjustment

Quality control microarray experiments using known

concentrations of RNA have demonstrated that certain probes

consistently give more signal than others even with the same

sample (or no sample)

The GCRMA approach relies on a stochastic model motivated

by hybridization theory and fit to experiments of known

standards to estimate probe affinities

The probe affinities are then used as parameters in a model

for observed intensity

As background adjustment, an empirical Bayes estimate of the

signal replaces the observed intensity

Microarray Parallelization Preprocessing Analysis

Background Adjustment: Parallelization Concerns

Ideally, each processor could perform background adjustment

on its own microarray(s)

However, to fit the background adjustment model, certain

parameters assumed to be constant over microarrays (e.g.

variances) need to be estimated

Nevertheless, there is more than enough data to estimate

these parameters “locally”

Microarray Parallelization Preprocessing Analysis

Normalization

The most common approach to normalization is quantile

normalization

The algorithm is as follows, given a matrix X:

Sort each column of X

Find the mean of each row

Assign to each element of X the mean value of its

within-column rank

Easy to parallelize using parRapply and parCapply,

although it potentially suffers from excess communication

Microarray Parallelization Preprocessing Analysis

Summarization

At this point, we have, for each gene, a p × n matrix of

adjusted intensities that we wish to summarize into an

n-dimensional vector of expression levels

This suggests a two-factor ANOVA model, where our outcome

of interest would be the estimated column means

Out of concern for potential outliers, the more robust median

polish approach is used instead of an ANOVA model

In principle, there is no problem parallelizing this operation,

although I found the overhead costs of setting up the

parallelization to trump the gains

Microarray Parallelization Preprocessing Analysis

Implementation: Top-level Code

parProcess <- function(data.directory)

filenames <- list.files(data.directory,full.names=T)

cl.split <- clusterSplit(cl,filenames)

p <- length(filenames)

sorted.list <- parLapply(cl,cl.split,parRAS,out.name="ind")

sorted <- matrix(unlist(sorted.list),ncol=p)

means <- parRapply(cl,sorted,mean)

norm.list <- clusterCall(cl,parUnsort,means=means,ind.name="ind")

norm <- matrix(unlist(norm.list),ncol=p)

val <- calcRMA(norm)

val

Microarray Parallelization Preprocessing Analysis

Results

> system.time(E.std <- process(data.directory))

> system.time(E.fast <- process(data.directory,fast=T))

> system.time(E.par3 <- parProcess(data.directory))

> system.time(E.par9 <- parProcess(data.directory))

> system.time(E.par27 <- parProcess(data.directory))

Microarray Parallelization Preprocessing Analysis

Analysis: Overview

It is difficult to make broad generalizations about microarray

analysis and whether operations can be made parallel

But in general....

Expression as outcome: usually clear

Expression as predictors: less clear

Unsupervised learning: seems hard

Microarray Parallelization Preprocessing Analysis

My Analysis

The microbiologists I worked with were interested in detecting

changes in expression over a variety of experimental conditions

An ANOVA model is generally appropriate

In this case, then, our problem is to fit 17361 linear models