Skip to main content
  • Research article
  • Open access
  • Published:

Microarray image analysis: background estimation using quantile and morphological filters

Abstract

Background

In a microarray experiment the difference in expression between genes on the same slide is up to 103 fold or more. At low expression, even a small error in the estimate will have great influence on the final test and reference ratios. In addition to the true spot intensity the scanned signal consists of different kinds of noise referred to as background. In order to assess the true spot intensity background must be subtracted. The standard approach to estimate background intensities is to assume they are equal to the intensity levels between spots. In the literature, morphological opening is suggested to be one of the best methods for estimating background this way.

Results

This paper examines fundamental properties of rank and quantile filters, which include morphological filters at the extremes, with focus on their ability to estimate between-spot intensity levels. The bias and variance of these filter estimates are driven by the number of background pixels used and their distributions. A new rank-filter algorithm is implemented and compared to methods available in Spot by CSIRO and GenePix Pro by Axon Instruments. Spot's morphological opening has a mean bias between -47 and -248 compared to a bias between 2 and -2 for the rank filter and the variability of the morphological opening estimate is 3 times higher than for the rank filter. The mean bias of Spot's second method, morph.close.open, is between -5 and -16 and the variability is approximately the same as for morphological opening. The variability of GenePix Pro's region-based estimate is more than ten times higher than the variability of the rank-filter estimate and with slightly more bias. The large variability is because the size of the background window changes with spot size. To overcome this, a non-adaptive region-based method is implemented. Its bias and variability are comparable to that of the rank filter.

Conclusion

The performance of more advanced rank filters is equal to the best region-based methods. However, in order to get unbiased estimates these filters have to be implemented with great care. The performance of morphological opening is in general poor with a substantial spatial-dependent bias.

Background

A microarray is defined as an ordered array of microscopic elements on a planar substrate which allows specific binding of genes or gene products [1]. For spotted cDNA microarrays double-stranded DNA sequences of length 500 to 2500 base pairs are printed on the substrate, which is usually a glass slide. The printed spots have a diameter in the range of some hundred μ m and each spot consists of DNA specific to one gene. Oligonucleotide microarrays have probes with single-stranded oligonucleotides consisting of 15 to 70 nucleotide molecules. Oligonucleotides may also be used for spotted microarrays.

Fluorescent dyes, typically with emission wavelengths in the green and red bands, are attached to the test and reference cDNA samples. Equal amounts of labeled test and reference cDNA are allowed to hybridize to the probes on the microarray. After abundant DNA is washed off the slide is scanned with a laser scanner resulting in two high-resolution images, one for each channel.

Spot intensity signals obtained from scanning a microarray do not only originate from fluorescent molecules attached to hybridized DNA, but also from other sources referred to as background. For instance, the source of the background signal could be fluorescence from the coating of the glass or contamination from the hybridization and washing procedures. The scanner device can also be a major source of background due to varying filter bandwidths, optics or photomultiplier tubes [24]. Background is assumed to be additive to the true spot signal such that the measured spot intensity equals true intensity plus background intensity.

The standard method for estimating the background of a spot is to assume that the background level is the same as the intensity in the proximity of the spot (excluding other spots). Two major approaches exist for estimating this intensity. The first, and most common, is to select an area near each spot and after identifying so called background pixels within this area, the background estimate of the spot is then taken as the sample median (or mean) of these pixels. One of the tools used for benchmarking in this paper -GenePix Pro by Axon Instruments Inc. – uses this method [5]. The second approach uses estimates that do not depend on the segmentation and the exact positioning of the spots. Examples are histogram and filter estimates. Histogram-based methods are not covered here. A morphological-opening filter together with additional methods is available in Spot by CSIRO [6]. A method similar to morphological opening was suggested in [7], and in [8] it was used as a "gold standard". The theory of mathematical morphology has extensively been treated in [9, 10] and [11], where the latter focuses on morphological filters. A survey of the generalization, rank filters, can be found in [12].

In [13] a number of commercially and freely available microarray image analysis methods were compared with the conclusion that morphological opening gives the best estimates of background levels. This paper further concludes that the choice of method for background estimation has a greater impact on the final log-ratios than the choice of method for spot segmentation.

In order to obtain an estimate of the true spot intensity it is almost universal to subtract the background estimate from the foreground estimate [14]. Note that even with unbiased background estimates not only half of the unexpressed spots, but also a great number of low-expression spots can be expected to have negative values after background correction. Negative spot values cause problems in the down-stream analysis and negative-biased background estimates, such as the morphological-opening estimates [13, 15], which produce fewer negative signals, have been suggested to overcome this problem. It is also common to define a threshold (in relation to the background intensity) that foreground intensity must exceed in order for the spot to be considered [16]. However, these low-intensity spots may contain valuable information, which is lost in this approach. In [17], Bayesian statistics is used to solve the problem with negative background corrected spots. Relying on the prior knowledge that the true spot intensity should be non-negative, the posterior distribution of the true spot intensity is calculated. Thereby not only negative spots, but also spots with intensities slightly above background, are estimated more accurately.

This paper is organized as follows. The Results section starts with a detailed description of the data analyzed, especially its background properties. This section then gives definitions and important properties of rank filters including morphological filters and also details on the background-estimation algorithms that use such filters. At the end, in the Results section, the bias and variability of the different methods, a novel rank filter, methods available in GenePix Pro and Spot plus a non-adaptive region-based method, are presented. The paper concludes with a discussion and major conclusions.

Results

Data

Four microarrays provided by the SWEGENE DNA Microarray Resource Center in Lund have been investigated. These slides, here named Slide 1 to 4, have the same identical layout with 8 × 4 print-tip groups, each containing 15 × 16 spots, making a total of 7680 spots per slide. The slides are replicates of each other such that the same gene is found at the same row and column. The lower 4 × 4 groups are replicates of the upper 4 × 4 groups. The same test and reference sample was used for Slide 1 and Slide 2, but with reversed labeling. Similarly for Slide 3–4 but for a different cell line. The test samples represent two different growing conditions for the cell lines, whereas all slides use the same reference samples.

Spatial trend

In Figure 1 the estimated background on Slide 1 is shown. A spatial trend of the background intensity is clearly visible, and the pattern of this trend is different in the red and green channels. The background intensity of the other slides is similar although with different patterns.

Figure 1
figure 1

Estimated background trend. Green (left) and red (right) background intensities on Slide 1 obtained from filtering the original 3644 × 1920 TIFF images with a quantile filter (γB,{0.08}ζb,7). The background patterns differ in the two channels.

Heteroscedastic noise

Typically, the standard deviation increases proportionally to the signal level [3, 18]. This also applies to microarray images and a consequence of this is that the standard deviation of the background will follow the spatial background trend. This is demonstrated in Figure 2 where the median absolute deviation of the background pixels is plotted against the background intensity. The median absolute deviation of { x i } i = 1 n MathType@MTEF@5@5@+=feaafiart1ev1aaatCvAUfKttLearuWrP9MDH5MBPbIqV92AaeXatLxBI9gBaebbnrfifHhDYfgasaacH8akY=wiFfYdH8Gipec8Eeeu0xXdbba9frFj0=OqFfea0dXdd9vqai=hGuQ8kuc9pgc9s8qqaq=dirpe0xb9q8qiLsFr0=vr0=vr0dc8meaabaqaciaacaGaaeqabaqabeGadaaakeaacqGG7bWEcqWG4baEdaWgaaWcbaGaemyAaKgabeaakiabc2ha9naaDaaaleaacqWGPbqAcqGH9aqpcqaIXaqmaeaacqWGUbGBaaaaaa@3799@ is a robust estimate of the standard deviation and defined as

Figure 2
figure 2

Variability of background pixels as a function of intensity. The median absolute deviation versus the median background pixel intensity in the green (left) and the red (right) channels on Slide 1 calculated using a window with a radius of 35 pixels (spot pixels excluded). There is a linear relationship between the median absolute deviation and the signal, and the scale factor is larger in the red channel (slope 0.19) compared to the green channel (0.11). For normal distributions, the standard deviation is 1.4826 times the median absolute deviation.

MAD = median i = 1 : n | x i median j = 1 : n { x j } | . ( 1 ) MathType@MTEF@5@5@+=feaafiart1ev1aaatCvAUfKttLearuWrP9MDH5MBPbIqV92AaeXatLxBI9gBaebbnrfifHhDYfgasaacH8akY=wiFfYdH8Gipec8Eeeu0xXdbba9frFj0=OqFfea0dXdd9vqai=hGuQ8kuc9pgc9s8qqaq=dirpe0xb9q8qiLsFr0=vr0=vr0dc8meaabaqaciaacaGaaeqabaqabeGadaaakeaacqqGnbqtcqqGbbqqcqqGebarcqGH9aqpdaWfqaqaaiabb2gaTjabbwgaLjabbsgaKjabbMgaPjabbggaHjabb6gaUbWcbaGaemyAaKMaeyypa0JaeGymaeJaeiOoaOJaemOBa4gabeaakiabcYha8jabdIha4naaBaaaleaacqWGPbqAaeqaaOGaeyOeI0YaaCbeaeaacqqGTbqBcqqGLbqzcqqGKbazcqqGPbqAcqqGHbqycqqGUbGBaSqaaiabdQgaQjabg2da9iabigdaXiabcQda6iabd6gaUbqabaGccqGG7bWEcqWG4baEdaWgaaWcbaGaemOAaOgabeaakiabc2ha9jabcYha8jabc6caUiaaxMaacaWLjaWaaeWaaeaacqaIXaqmaiaawIcacaGLPaaaaaa@5E87@

For normal distributed data the standard deviation is 1.4826 times the median absolute deviation.

Pixel distributions

Another property of the background pixels is that their distributions are different in the two channels. Figure 3 shows histograms for selected background regions on Slide 1 chosen to have approximately the same sample median value. The signals in the red channels are more skewed compared to the signals in the green channels. In the literature, different distributions have been proposed for pixel intensities, e.g. the normal, the lognormal, and the gamma distributions [13, 18, 19].

Figure 3
figure 3

Background pixel distributions. Histograms of background pixel intensities in the green (left) and the red (right) channels on Slide 1 for regions that have approximately the same sample median in both channels. The distribution in the red channel is more skewed than in the green channel.

Negative background corrected spots

The estimated background is highly correlated with the weakest spots, see Figure 4. There are 81 background estimates that exceed the foreground estimates in the red channel on Slide 1. Ideally, this implies that approximately twice as many or two percents of the genes are unexpressed. This number was less than expected considering the biological layout of the experiment. Cross hybridization and other unspecific binding of RNA to the spots may add to the signals [17].

Figure 4
figure 4

Estimated spot intensity versus estimated background intensity. GenePix Pro median foreground versus Fixed35 median background estimates in the green (left) and the red (right) channels on Slide 1. The spots with lowest intensity follow the estimated background closely. This is a justification for using between-spot intensities to estimate the true background levels.

Figure 5
figure 5

Block structure in morphological-filtered images compared to quantile filters. Background estimates in the red channel on Slide 1 (rows 1800, ..., 2300 and columns 500, ..., 1000) using morphological opening γ50 × 50 (left) and quantile opening γ50 × 50,{0.2} (right). The quantile filter gives a smoother image. Gray scales are not comparable.

Rank filters and morphology

Definitions and properties

A digital gray-scale image can be represented by the image function f : D f T f , with domains D f 2, and T f or T f depending on if the gray levels are continuous or discrete, respectively. That is, f(x) is equal to the gray level at position x = (i, j). Let B be a compact subset of 2 that is symmetric with respect to its origin. A rank filter ζ B,k (f) of order k using a structuring element B positioned at pixel x and operating on f, is defined by

( ζ B , k ( f ) ) ( x ) = rank k { f ( x x B ) | x x B D f ; x B B } , ( 2 ) MathType@MTEF@5@5@+=feaafiart1ev1aaatCvAUfKttLearuWrP9MDH5MBPbIqV92AaeXatLxBI9gBaebbnrfifHhDYfgasaacH8akY=wiFfYdH8Gipec8Eeeu0xXdbba9frFj0=OqFfea0dXdd9vqai=hGuQ8kuc9pgc9s8qqaq=dirpe0xb9q8qiLsFr0=vr0=vr0dc8meaabaqaciaacaGaaeqabaqabeGadaaakeaacqGGOaakiiGacqWF2oGEdaWgaaWcbaGaemOqaiKaeiilaWIaem4AaSgabeaakiabcIcaOiabdAgaMjabcMcaPiabcMcaPiabcIcaOiabbIha4jabcMcaPiabg2da9maaxababaGaeeOCaiNaeeyyaeMaeeOBa4Maee4AaSgaleaacqWGRbWAaeqaaOGaei4EaSNaemOzayMaeiikaGIaeeiEaGNaeyOeI0IaeeiEaG3aaSbaaSqaaiabdkeacbqabaGccqGGPaqkcqGG8baFcqqG4baEcqGHsislcqqG4baEdaWgaaWcbaGaemOqaieabeaakiabgIGiolabdseaenaaBaaaleaacqWGMbGzaeqaaOGaei4oaSJaeeiEaG3aaSbaaSqaaiabdkeacbqabaGccqGHiiIZcqWGcbGqcqGG9bqFcqGGSaalcaWLjaGaaCzcamaabmaabaGaeGOmaidacaGLOaGaayzkaaaaaa@62BB@

where the rank k {x} equals the kth element of x sorted in ascending order. It holds that

ζB,1ζB,2≤ ... ≤ ζB,n,     (3)

where n = cardinal (B) equals the number of pixel inside B, that is, the size of the filter mask. Moreover, rank filters are increasing meaning that

fg ζB,k(f) ≤ ζB,k(g).     (4)

The fundamental morphological operations erosion (ε B ) and dilation (δ B ) can be written as rank filters;

ε B = ζB,1,     (5)

δ B = ζB,n.     (6)

This follows the definition of dilation in [9, 10]. A composition of operators on f is written as ψ φ = (ψ φ)(f) = ψ(φ(f)) and ψ2 = ψ ψ (note the order). Erosion and dilation can be combined to perform morphological openings (γ B ) and closings (φ B ) defined by

γ B = δ B ε B ,     (7)

ϕ B = ε B φ B .     (8)

That is, an opening is an erosion followed by a dilation, and a closing is a dilation followed by an erosion, both steps using the same structuring element B. Moreover, openings are anti-extensive and closings are extensive;

γ B (f) ≤ f,     (9)

φ B (f) ≤ f.     (10)

Furthermore, they are also idempotent;

γ B 2 = γ B  and  ϕ B 2 = ϕ B . ( 11 ) MathType@MTEF@5@5@+=feaafiart1ev1aaatCvAUfKttLearuWrP9MDH5MBPbIqV92AaeXatLxBI9gBaebbnrfifHhDYfgasaacH8akY=wiFfYdH8Gipec8Eeeu0xXdbba9frFj0=OqFfea0dXdd9vqai=hGuQ8kuc9pgc9s8qqaq=dirpe0xb9q8qiLsFr0=vr0=vr0dc8meaabaqaciaacaGaaeqabaqabeGadaaakeaaiiGacqWFZoWzdaqhaaWcbaGaemOqaieabaGaeGOmaidaaOGaeyypa0Jae83SdC2aaSbaaSqaaiabdkeacbqabaGccqqGGaaicqqGHbqycqqGUbGBcqqGKbazcqqGGaaicqWFvpGAdaqhaaWcbaGaemOqaieabaGaeGOmaidaaOGaeyypa0Jae8x1dO2aaSbaaSqaaiabdkeacbqabaGccqGGUaGlcaWLjaGaaCzcamaabmaabaGaeGymaeJaeGymaedacaGLOaGaayzkaaaaaa@47A2@

That is, applying an idempotent filter subsequently results in no further change to the image. Generally, an operator that is increasing, anti-extensive or extensive and idempotent is called an opening and a closing, respectively.

By replacing the erosion and dilation in Equations (7) and (8) with rank operators one get "rank opening" (γ B,k ) and "rank closing" (φ B,k );

γB,k= ζB,n-kζB,k; 1 ≤ k <n/2     (12)

φB,k= ζB,n-kζB,k; n/2 <kn.     (13)

Note that (7) and (8) are obtained by using k = 1 and k = cardinal(B), respectively. The increasing property (4) of morphological opening and closing holds also for rank opening and closing. To make the analogue to the corresponding morphological filters clear, the words "opening" and "closing" are used although rank opening and closing are in general neither extensive (9), anti-extensive (10) nor idempotent (11).

It should also be emphasized that the word filter as in rank filter, is used in the general meaning, as a synonym for operator. This is not consistent with some of the literature in the field of mathematical morphology where the word filter is reserved for an operator that is increasing and idempotent [911]. An special case of rank filtering is obtained if rank is defined as a fraction of the number of pixels inside the structuring element. This is called a quantile filter and is denoted ζB,{q}where the rank is defined by

{ q } = { cardinal ( B ) q + 1 , 0 q < 1 cardinal ( B ) , q = 1 , ( 14 ) MathType@MTEF@5@5@+=feaafiart1ev1aaatCvAUfKttLearuWrP9MDH5MBPbIqV92AaeXatLxBI9gBaebbnrfifHhDYfgasaacH8akY=wiFfYdH8Gipec8Eeeu0xXdbba9frFj0=OqFfea0dXdd9vqai=hGuQ8kuc9pgc9s8qqaq=dirpe0xb9q8qiLsFr0=vr0=vr0dc8meaabaqaciaacaGaaeqabaqabeGadaaakeaacqGG7bWEcqWGXbqCcqGG9bqFcqGH9aqpdaGabaqaauaabaqaciaaaeaadaGbdaqaaiabbogaJjabbggaHjabbkhaYjabbsgaKjabbMgaPjabb6gaUjabbggaHjabbYgaSjabcIcaOiabdkeacjabcMcaPiabgwSixlabdghaXjabgUcaRiabigdaXaGaayj84laawUp+aiabcYcaSaqaaiabicdaWiabgsMiJkabdghaXjabgYda8iabigdaXaqaaiabbogaJjabbggaHjabbkhaYjabbsgaKjabbMgaPjabb6gaUjabbggaHjabbYgaSjabcIcaOiabdkeacjabcMcaPiabcYcaSaqaaiabdghaXjabg2da9iabigdaXaaaaiaawUhaaiabcYcaSiaaxMaacaWLjaWaaeWaaeaacqaIXaqmcqaI0aanaiaawIcacaGLPaaaaaa@6981@

with x equal to the greatest integer less than or equal to x. When using this quantile notation, Equations (12) and (13) are referred to as "quantile opening" and "quantile closing", respectively.

Size and distributions dependence

If f is a gray-scale image consisting of independent and identically distributed (i.i.d.) pixels with the cumulative density function F f (z) = P(fz), then the cumulative density function of the pixels in the rank-filtered image ζ B,k (f) is

F ζ B , k ( z ) = i = k n ( n i ) [ F f ( z ) ] i [ 1 F f ( z ) ] n i ( 15 ) MathType@MTEF@5@5@+=feaafiart1ev1aaatCvAUfKttLearuWrP9MDH5MBPbIqV92AaeXatLxBI9gBaebbnrfifHhDYfgasaacH8akY=wiFfYdH8Gipec8Eeeu0xXdbba9frFj0=OqFfea0dXdd9vqai=hGuQ8kuc9pgc9s8qqaq=dirpe0xb9q8qiLsFr0=vr0=vr0dc8meaabaqaciaacaGaaeqabaqabeGadaaakeaacqWGgbGrdaWgaaWcbaacciGae8NTdO3aaSbaaWqaaiabdkeacjabcYcaSiabdUgaRbqabaaaleqaaOGaeiikaGIaemOEaONaeiykaKIaeyypa0ZaaabCaeaadaqadaabaeqabaGaemOBa4gabaGaemyAaKgaaiaawIcacaGLPaaaaSqaaiabdMgaPjabg2da9iabdUgaRbqaaiabd6gaUbqdcqGHris5aOGaeeiiaaIaei4waSLaemOray0aaSbaaSqaaiabdAgaMbqabaGccqGGOaakcqWG6bGEcqGGPaqkcqGGDbqxdaahaaWcbeqaaiabdMgaPbaakiabcUfaBjabigdaXiabgkHiTiabdAeagnaaBaaaleaacqWGMbGzaeqaaOGaeiikaGIaemOEaONaeiykaKIaeiyxa01aaWbaaSqabeaacqWGUbGBcqGHsislcqWGPbqAaaGccaWLjaGaaCzcamaabmaabaGaeGymaeJaeGynaudacaGLOaGaayzkaaaaaa@60A2@

for 1 ≤ kn where n = cardinal(B). The summation term is recognized as the probability that amongst n values i of these are less than or equal to z. This is the same as the binomial probability distribution function [20]. It is worth noting that pixels become correlated in rank-filtered images.

The background pixels in the unfiltered image can be assumed to be, with some approximation, locally i.i.d. Equation (15) then gives that the mean and the variance of the background pixels in the filtered image depend both on the number of background pixels (n) inside the structuring element and on the distribution of the pixels (F f (·)). This is also true for a composition of rank filters such as closing or opening. The dependence on the number of background pixels can clearly be seen in Figure 6, which illustrates this dependency for morphological opening; when the size of the structuring element increases, the mean level of the background estimate decreases. It is therefore in general not possible to use the size of the structuring element as a way to control the variance of the estimate. Approximating what is observed in the green and the red channels, the differences in bias between normal and lognormal pixel distributions using a morphological-filter estimate are shown in Figure 8.

Figure 6
figure 6

Morphological background as a function of structuring element size. The mean of Spot's morph.close.open (δ B ε B ,δ b ) as a function of k scale taken over all 7680 spots in the red channel on Slide 1. The size of the structuring element B is (kscales r × kscales c ) and the size of B' is (kscale(s r - 2) × kscale(s c - 2)), where s r and s c are the spot-separating distances by row and column, respectively. The default value kscale = 2.5 was used, which for Slide 1 to 4 gives a structuring element (B) of size 62 × 62.

Figure 7
figure 7

Profiles showing the spatial bias for different filters. Estimated background levels of four different methods along a vertical line (pixel column 915) on Slide 1 in the red channel. From bottom: (1) morphological opening γ60 × 60, (2a) quantile opening γ60 × 60,{0,1}, (2b) the latter shifted 17 units upward for visibility (dashed), and at the top (3) the quantile filter γ60 × 60,{0.08} ζ3 × 3,7 which almost equals (4) the median background (bold curve). The opening and the corresponding quantile filter do not follow the median background trend well enough.

Figure 8
figure 8

Bias as a function of structuring element size for normal and lognormal distributions. Mean pixel value versus n = cardinal(B) for γ B δ3 × 3-filtered (similar to morph.close.open) simulated images with independent and identically distributed pixels from various normal distributions N(0,σ); σ = (30, 50, 70) (top), and from various log-normal distributions (LN(m, 0.4) - e ( m + 0.4 2 / 2 ) MathType@MTEF@5@5@+=feaafiart1ev1aaatCvAUfKttLearuWrP9MDH5MBPbIqV92AaeXatLxBI9gBaebbnrfifHhDYfgasaacH8akY=wiFfYdH8Gipec8Eeeu0xXdbba9frFj0=OqFfea0dXdd9vqai=hGuQ8kuc9pgc9s8qqaq=dirpe0xb9q8qiLsFr0=vr0=vr0dc8meaabaqaciaacaGaaeqabaqabeGadaaakeaacqWGLbqzdaahaaWcbeqaaiabcIcaOiabd2gaTjabgUcaRiabicdaWiabc6caUiabisda0maaCaaameqabaGaeGOmaidaaSGaei4la8IaeGOmaiJaeiykaKcaaaaa@37EE@ ); m = 3,4,5 (bottom). As indicated by the dashed vertical line, the background estimates are unbiased only for one specific size of structuring element B. The estimates will be biased with different amounts depending on the distribution of background noise for all other choices of B.

The linearity of the expectation value gives that if E[ψ(f)] = m + β, then

E[ψ(λ f)] = λm + λβ,     (16)

for some constant λ The bias (β) of the estimate thus increases proportional to the standard deviation of the background pixels as long as the "shape" of the distribution does not change. This dependence of the bias to the pixel variance applies to all rank-based estimates, including the sample median. Because of this, and as further illustrated in Figure 7, it is not sufficient to shift the estimates (add a global constant) in order to correct for bias.

Block structure effects

When an image is processed using a morphological filter the resulting image will have a profound block structure. Processing the same image with a rank filter using less extreme rank orders this effect is not longer observed, cf. Figure 5. The reason for the block structure is the use of extreme values in the rank operators, cf. Equations (5) and (6). If inside a window (B) the minimum (maximum) value is chosen, then the distance the window has to move in order to reach a smaller (greater) value is likely to be larger than if, say, the median is used. This block structure increases the variability of the background estimates compared to the smoother rank-filtered image.

Filter implementations

Morphological filters

One filter used for background estimation in Spot and described in [13] is morphological opening (γ B ), that is, an erosion followed by a dilation with equally sized structuring elements. In Spot this method is denoted morph.open (or shorter morph). The function of the opening filter is intuitive; the erosion step removes the spots as well as too bright pixels (outliers). The dilation is necessary to make the filter idempotent, and thereby preserving size of structures larger than the structuring element. The background estimates are obtained by sampling the filtered image at the spot center locations. Because of the anti-extensive property of an opening, background estimates from this filter will be substantially lower than the expectation value of the background intensity. This bias increases with the size of the structuring element. Furthermore, the bias also increases with background intensity so that regions with low background give less bias than regions with high background. This is illustrated in Figure 7. Since the background trends are different in the red and green channels there will be a spatial bias in the background estimate between the two channels.

The negative bias of an opening filter is avoided by preprocessing the image with a small dilation (δ b );

γ B δ b .     (17)

In Spot, this background estimation method is denoted morph.close.open [6]. With this method it possible to obtain an estimate in level with the expectation value of the background, cf. Figure 6 and Figure 8. However, the level of the estimate (bias) still depends on the distribution of the background pixels and the size of the opening. In order to get a correct background estimate the size of the opening must be adjusted to the distribution and the spot-separating distances for each individual array. In Spot, the size of the structuring element is determined by the spot-separating distances. The default size is two and a half (k scale = 2.5) times the spot-separating distances (s r and s c ) measured from center to center. Note how this makes the number of background pixels in the structuring element increase with the distance between spots. According to the preceding section this introduces bias that depends on the spatial design on the slide. Moreover, starting with version 6.0, morphological filters are also available in GenePix Pro [5].

Quantile filters

An advantage of the above described quantile filters is that the level of the background estimate is almost independent of the size of the structuring elements. Thereby it is possible to control the variance without affecting the level of the estimate. Also, a quantile filter has less variability compared to a morphological filter of the same size. However, the quantile filter is still affected by changes in the distribution of background pixels. As in the case with morphological filters, a negative bias can be avoided by preceding the opening with a small rank filter (ζ b,k ) to get

γB,{q}ζb,k.     (18)

The bias is preferably controlled both by the rank (k) and size (b) of the first small filter as well as the quantile (q) of the opening, whereas the variance of the estimate is controlled by the size (B) of the opening.

It is possible to improve the estimates by utilizing a preprocessing mean value filter for the purpose of normalizing the distribution, in accordance with the Central Limit Theorem, which states that the sum (or the mean) of an i.i.d. sample will be asymptotically normal distributed. Even a small sample of nine pixels seems to be sufficient enough to give background pixel distributions that are reasonably equal in shape. However, since robustness decreases with each preprocessing filter, the sensitivity toward outliers with such a filter may be too great for the purpose of background estimation in microarray images. The need for free space between spots is another limiting factor of this approach. This strategy is not pursued further in this paper.

Size of the structuring element

In the opening step of all the above filters, the size of the structuring element is determined by the number of remaining background pixels after the preprocessing filters. Assume that the distances between spots are greater than the size of the first dilation. Then the number of background pixels inside the structuring element B is approximately

nbg ≈ cardinal (B) - nspots(rspot + rΔ)2π,     (19)

where nspots is the number of spots inside the structuring element and rspot is the radius of the average spot. The addition of rΔ to the radius is needed because of a boundary effect around each spot, which depends on the rank and size of the small dilation. If the first step is a rank filter ζ b,k , then there can be a maximum of cardinal(b) - k spot pixels inside the structuring element, if the filtered pixel is to be regarded as a background pixel in the proceeding erosion. The number of background pixels used in morph.open is given by rΔ = 0 and in morph.close.open by rΔ = 1.

If the same structuring element is used for the whole image, there will be a negative bias in the background estimate for spots located at the border to alleys (the regions that separate different print-tip groups) because the number of background pixels inside the structuring element increases. For these spots the number of background pixels inside the structuring element is greater than at spots away from the alleys, cf. Equation (19). This is illustrated in Figure 1 showing a γB,{0.08}ζ3×3,7-filtered image where the alleys appear as slightly darker (lower intensity) horizontal and vertical bands. This effect is stronger if the spot-separating distance is small, which confirm the conclusions in previous sections. This underestimation of the background at the alleys can be solved by using a structuring element (B) with a variable size such that the number of background pixels inside the structuring element is independent of where on the image it is placed. Alternatively, the quantile (q) may be adjusted.

Performance

The estimates of the quantile filter γB,{0.08}ζb,7are compared to the background estimates of the commercial software GenePix Pro by Axon Instruments and Spot from CSIRO. The sizes of the structuring elements (B and b) in the quantile filter are the same as the default sizes of the corresponding morphological filters in Spot, whereas the parameters q and k have been manually adjusted to give low bias for Slide 1 to 4. For slides with a different layout, that is if the spot size and spot-separating distance are different, the structuring element B should be resized to contain approximately the same number of background pixels, cf. Equation (19). Compared to the related morphological filter morph.close.open, the above quantile filter is more robust to changes in the distributions of the background pixels.

By default the background mask in GenePix Pro is a disc with a radius of three times the spot radius excluding spot pixels. Since the segmented spots differ in size the number of pixels used by the sample median background estimate varies. For Slide 1 the number of pixels used in the background sample varies from about 40 to 1500, which gives estimates with unnecessary large variances, cf. Figure 10.

To correct for the above, a related background estimate, referred to as Fixed R , was implemented. It differs from GenePix Pro such that the number of background pixels is fixed by utilizing a fixed radius R. The subscript denotes the radius of the outer circle, and all pixels inside this circle, except for spot pixels, are used in the background sample median estimate. With this approach, all spot masks are equal in size, and thereby the number of pixels in the background samples is equal for all spots.

Figure 9
figure 9

Bias as a function of background intensity for different morphological filters. Morphological background estimates versus Fixed35,t.mean in the green (left) and the red (right) channels on Slide 1. The morph.close.open estimates at the top are consistently higher than the morph.open estimates. The relationship between the estimates and the background levels is approximately linear as indicated by the solid lines. The dashed line is the identity function. The bias (difference between the solid and the dashed lines) increases faster in the red channel because of a larger increase in standard deviation, cf. Figure 2.

Figure 10
figure 10

Illustration of the variability of the estimates. Background estimates Fixed35 (thick line), γ60 × 60,{0.08} ζb,7(thick dashed line), and GenePix Pro median (thin line) in the red channel along a horizontal line on Slide 1 (spot row 40). The large variability of the GenePix Pro estimate is mainly due to the adaptive size of the background mask.

Bias for different estimates

Without the possibility to measure the background at the exact spot location all methods rely on the assumption that the real background can be approximated by the pixel intensity between the spots. Thus, the methods are designed to estimate the pixel intensity in some region close to each spot. The bias of an estimator is defined as the difference between the expectation value of the estimator and the true value. Since all methods try to estimate the between-spot intensity, the true value is supposed to be the mean of the expectation values of the "between-spot background" pixels for some region close to each spot. This region is here chosen to be a circle with a radius of 18 pixels, which corresponds to the default size of the background mask in GenePix Pro and Fixed18. An unbiased estimator would be the sample mean. However, for microarray images, the sample mean is not robust enough to be a good estimate of E[·].

With a breakdown percentage of zero, it takes only one single outlier pixel to corrupt the sample mean [21]. Instead the bias is measured in relation to the more robust trimmed sample mean (with 0.4 percent symmetric exclusion). This background method is denoted Fixed18,t.mean.

The mean bias for the different methods is presented in Table 1 and the bias dependence on the background intensity is plotted in Figure 9. The quantile filter γB,{0.08}ζb,7gives the lowest bias followed by GenePix Pro, Fixed35 and Fixed18. The bias of these methods is in the range of 2 to -4 for the different slides and channels. The value for GenePix Pro is misleading since the GenePix Pro estimates have a great variability upward (see Figure 10), resulting in a smaller mean bias. The morphological filter morph.close.open gives a bias between -6 and -16 when the default value kscale = 2.5 is used. The highest bias is given by morphological opening (morph.open or as in Spot just morph) where the mean bias is between -53 and -248. In this case the spatial bias between regions with low and high background becomes substantial, cf. Figure 9. Moreover, as a result of different distributions in different channels the mean bias differ in the red and the green channels.

Table 1 Mean bias in background estimates. Mean bias for various region-based background estimates, as well as for various quantile and morphological filter estimates. The bias is measured relative to Fixed18,t.mean. The structuring elements for the quantile filter γB,{0.08}ζb,7are B = 60 × 60 and b = 3 × 3. The subscript of Fixed R is the radius of the background circle mask. The size of the morphological filters Spot's morph.close.open and morph.open is the default value (kscale = 2.5, s r = s c = 25).

Variability

With an inhomogeneous "unknown" background it is not possible to generate a reliable estimate of the variance of the error in the estimated background values, especially in regions with high variability of the true background values. However, the variability of the background estimates is important. Instead of trying to estimate the variance, squared nearest neighbor deviation (s.n.n.d.) is used as a proxy for local variability of estimated background values. S.n.n.d. is defined as

s . n . n . d = i = 1 n i j = 1 n j ( [ φ ( i , j ) φ ( i + 1 , j ) ] 2 + [ φ ( i , j ) φ ( i , j + 1 ) ] 2 ) / ( 2 n i n j ) . ( 20 ) MathType@MTEF@5@5@+=feaafiart1ev1aaatCvAUfKttLearuWrP9MDH5MBPbIqV92AaeXatLxBI9gBaebbnrfifHhDYfgasaacH8akY=wiFfYdH8Gipec8Eeeu0xXdbba9frFj0=OqFfea0dXdd9vqai=hGuQ8kuc9pgc9s8qqaq=dirpe0xb9q8qiLsFr0=vr0=vr0dc8meaabaqaciaacaGaaeqabaqabeGadaaakeaacqWGZbWCcqGGUaGlcqWGUbGBcqGGUaGlcqWGUbGBcqGGUaGlcqWGKbazcqGH9aqpdaaeWbqaamaaqahabaGaeiikaGIaei4waSfcciGae8NXdyMaeiikaGIaemyAaKMaeiilaWIaemOAaOMaeiykaKIaeyOeI0Iae8NXdyMaeiikaGIaemyAaKMaey4kaSIaeGymaeJaeiilaWIaemOAaOMaeiykaKIaeiyxa01aaWbaaSqabeaacqaIYaGmaaaabaGaemOAaOMaeyypa0JaeGymaedabaGaemOBa42aaSbaaWqaaiabdQgaQbqabaaaniabggHiLdaaleaacqWGPbqAcqGH9aqpcqaIXaqmaeaacqWGUbGBdaWgaaadbaGaemyAaKgabeaaa0GaeyyeIuoakiabgUcaRiabcUfaBjab=z8aMjabcIcaOiabdMgaPjabcYcaSiabdQgaQjabcMcaPiabgkHiTiab=z8aMjabcIcaOiabdMgaPjabcYcaSiabdQgaQjabgUcaRiabigdaXiabcMcaPiabc2faDnaaCaaaleqabaGaeGOmaidaaOGaeiykaKIaei4la8IaeiikaGIaeGOmaiJaemOBa42aaSbaaSqaaiabdMgaPbqabaGccqWGUbGBdaWgaaWcbaGaemOAaOgabeaakiabcMcaPiabc6caUiaaxMaacaWLjaWaaeWaaeaacqaIYaGmcqaIWaamaiaawIcacaGLPaaaaaa@8152@

Measured spot by spot, Φ(i, j) is the background estimate at spot (i, j), where i and j are the spot row and spot column, and n i and n j are the number of spot rows and columns, respectively. Measured pixel by pixel, Φ(i, j) is equal to the value of the pixel located at x = (i, j) in the filtered image and n i × n j is the size of the image.

S.n.n.d. is by construction not an estimate of variance although the two are related. The variability of the error in the background estimates as well as the variability of the true background values contribute to the s.n.n.d. measure. However, the variability of the true values is the same regardless of which background-estimation method is used. For this reason, if the size of the background region over which the estimated background value is computed is the same for the methods, then s.n.n.d. can be used as a relative measure of the variability of the error in the estimates allowing us to compare methods.

The results for Slide 1 to 4 are presented in Table 2 and Table 3. The lowest s.n.n.d. is obtained with the quantile filter γB,{0.08}ζb,7. The s.n.n.d. of the corresponding morphological filter, morph.close.open, is approximately 3 times higher. With a radius comparable to the size of the quantile filter, the s.n.n.d. of the Fixed35 estimate is only slightly higher than for the quantile filter.

Table 2 Squared nearest neighbor deviation measured spot by spot. Comparison of variability in background estimates for region-based methods as well as quantile and morphological filters. The same parameter settings as in Table 1 have been used. By measuring spot by spot the effect of the block structure in the morphological filtered image is reduced, cf. Table 3.
Table 3 Squared nearest neighbor deviation measured pixel by pixel. Comparison of variability in background estimates when a quantile and a morphological filter are used. The morphological filter γ B δ b is comparable to Spot's morph.close.open. The same parameter settings as in Table 1 have been used. The difference in s.n.n.d. between the quantile filter and the morphological filter is due to the block structure in the morphological filtered image.

The bias of a rank-filter estimate increases proportional to the standard deviation of the background pixels. Negative-biased background methods like Spot's morph.open will therefore not be able to follow the spatial trend well enough, cf. Figure 7 and Figure 9, resulting in a too flat background surface. This effect is stronger in the red channel due to a larger increase in standard deviation as the background intensity increases, cf. Figure 2. This explains the much lower s.n.n.d. for morph.open in the red channel. The GenePix Pro estimates have the highest s.n.n.d., approximately 4.5 times higher than for the related Fixed18.

Measured pixel by pixel, the difference in s.n.n.d. of a quantile filter γB,{0.08}ζb,7and a morphological filter γ B δ b (comparable to Spot's morph.close.open), is about one to ten in favor of the quantile filter, cf. Table 3. This is expected because of the block structure in the morphological-filtered images. The relative difference between the quantile filter and the morpholgical filter due to block structures is reduced to about one to four when measured spot by spot.

Discussion

In every step of the overall process from slide manufacturing and the biological setup to the scanning and image analysis, noise is added to the final result. Because of this and the fact that all methods try to estimate the same between-spot intensity, a "biological validation" of the different methods discussed in this paper is of little value.

The assumption that the intensity in the area between the spots is equal to the background intensity of the actual spot can be questioned because it is frequently observed that background intensities of spot areas that are covered with printed cDNA may differ from the intensities in areas where no DNA is printed. If "dark" spots, that is spots significantly lower in intensity than the surrounding regions, occur in the image, then it must be that the mean intensity in the area between those spots is higher than the actual zero level of the spot. On the other hand, if the correlation between the spots with the lowest intensity and the estimated background is as great as in Figure 4, this is a strong indication that the intensity in the area between the spots is proportional to the actual background of the spot. An interesting approach would be to use negative controls (spots that are known to have no expression) as a quality measure or for calibration of the background estimates. Another alternative to standard background subtraction is spatial normalization [22]. A comparative study between these alternatives is needed.

Conclusion

The performance of properly adjusted rank-filter estimates is equal to, or even slightly better than local region-based methods. The previously suggested morphological opening has a substantial bias in the estimates and because of the spatial dependence of the bias this can not be corrected for by a subsequent normalization.

Methods

All slides were scanned with an Axon GenePix 4000A scanner by the SWEGENE Microarray Resource Center at the BioMedical Center B10 in Lund.

The Axon GenePix Pro (v3.0.6.71) image analysis was performed by the SWEGENE Center and the CSIRO Spot (v2.0) analysis by us. The software package Spot is implemented as an add-on library to the software environment R [23].

The Fixed R background estimation method and the rank filter algorithms were implemented using the commercial software Matlab from Mathworks.

References

  1. Schena M: Microarray Analysis. John Wiley & Sons, New Jersey; 2003.

    Google Scholar 

  2. Bengtsson H, Jönsson G, Vallon-Christersson J: Calibration and assessment of channel-specific biases in microarray data with extended dynamical range. BMC Bioinformatics 2004., 5(177):

  3. BURLE: Photomultiplier Handbook. BURLE TECHNOLOGIES INC; 1980.

    Google Scholar 

  4. Weiss S: Choosing Components for a Microarray Scanner.Hamamatsu Corporation; 2003. [http://www.usa.hamamatsu.com/]

    Google Scholar 

  5. AXON: GenePix Pro 6.0, User's Guide & Tutorial.Axon Instruments Inc; 2005. [http://www.axon.com]

    Google Scholar 

  6. Buckley MJ: The Spot user's guide.CSIRO Mathematical and Information Sciences, Sydney; 2003. [http://www.cmis.csiro.au/IAP/Spot/spotmanual.htm]

    Google Scholar 

  7. Angulo J, Serra J: Automatic analysis of DNA microarray images using mathematical morphology. Bioinformatics 2003, 19(5):553–562. 10.1093/bioinformatics/btg057

    Article  CAS  PubMed  Google Scholar 

  8. Yin W, Chen T, Zhou XS, Chakraborty A: Background correction for cDNA microarray images using the TV+ L 1model. Bioinformatics Advanced Access 2005.

    Google Scholar 

  9. Serra J: Image Analysis and Mathematical Morphology. Volume 1. Academic Press Ltd; 1982.

    Google Scholar 

  10. Serra J, Ed: Image Analysis and Mathematical Morphology, Theoretical Advances. Volume 2. Academic Press Ltd; 1988.

    Google Scholar 

  11. Heijmans H: Composing morphological filters. In Tech Rep BS-R9504, Centrum voor Wiskunde en Informatica (CWI). Amsterdam, The Netherlands; 1995.

    Google Scholar 

  12. Soille P: On morphological operators based on rank filters. Pattern recognition 2002, 35: 527–535. 10.1016/S0031-3203(01)00047-4

    Article  Google Scholar 

  13. Yang YH, Buckley M, Dudoit S, Speed T: Comparison of methods for image analysis on cDNA microarray data. Journal of Computational and Graphical Statistics 2002, 11: 108–136. 10.1198/106186002317375640

    Article  Google Scholar 

  14. Bengtsson H, Hössjer O: Methodological study of affine transformations of gene expression data with proposed normalization method. BMC Bioinformatics 2006., 7(100): [http://www.biomedcentral.com/1471–2105/7/100/abstract]

  15. Smyth GK, Yang YH, Speed T: Statistical Issues in cDNA Microarray Data Analysis. In Functional Genomics: Methods and Protocols, of Methods in Molecular Biology. Volume 224. Edited by: Brownstein MJ, Khodursky AB. Humana Press, Totowa, NJ; 2003:111–136.

    Chapter  Google Scholar 

  16. Jenssen TK, Langaas M, Kuo W, Smith-Sörenesen B, Myklebost O, Hovig E: Analysis of repeatability in spotted cDNA microarrays. Nucleic Acids Research 2002, 30(14):3235–3244. 10.1093/nar/gkf441

    Article  PubMed Central  CAS  PubMed  Google Scholar 

  17. Kooperberg C, Fazzio T, Delrow J, Tsukiyama T: Improved Background Correction for Spotted DNA Microarrays. Journal of Computational Biology 2002, 9: 55–66. 10.1089/10665270252833190

    Article  CAS  PubMed  Google Scholar 

  18. Rocke DM, Durbin B: A Model for Measurement Error for Gene Expression Arrays. Journal of Computational Biology 2001, 8(6):557–69. 10.1089/106652701753307485

    Article  CAS  PubMed  Google Scholar 

  19. Wit E, McClure J: Statistical adjustment of signal censoring in gene expression experiments. Bioinformatics 2003, 19(9):1055–1060. 10.1093/bioinformatics/btg003

    Article  CAS  PubMed  Google Scholar 

  20. David HA: Order Statisics. 2nd edition. John Wiley & Sons, New York; 1981.

    Google Scholar 

  21. Hampel F, Ronchetti E, Rouseeuw P, Stahel W: Robust Statistics: The approach based on influence functions. John Wiley & Sons; 1986.

    Google Scholar 

  22. Cui X, Kerr MK, Churchill GA: Transformations for cDNA microarray data. Stat Appl Genet Mol Biol 2003., 2(No 1, Article 4):

  23. R Development Core Team: R: A Language and Environment for Statistical Computing.R Foundation for Statistical Computing, Vienna, Austria; 2005. [http://www.R-project.org] [ISBN 3-900051-07-0]

    Google Scholar 

Download references

Acknowledgements

The authors would like to thank Dr. Pratyaksha Wirapati and Dr. Matt Ritchie for their suggestion to use quantile filters and the Image Analysis Group at CSIRO Mathematical and Information Sciences in Sydney for providing the Spot application. Microarrays and microarray data were kindly provided by the SWEGENE DNA Microarray Resource Center at the BioMedical Center B10 in Lund, which is supported by the Knut and Alice Wallenberg foundation through the SWEGENE consortium.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Anders Bengtsson.

Additional information

Authors' contributions

AB conceived the study, carried out the data analysis and drafted the manuscript. HB suggested the general outline of the study, participated in the analysis and provided scientific guidance. Both authors critically revised the manuscript and approved the final version.

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.

Reprints and permissions

About this article

Cite this article

Bengtsson, A., Bengtsson, H. Microarray image analysis: background estimation using quantile and morphological filters. BMC Bioinformatics 7, 96 (2006). https://doi.org/10.1186/1471-2105-7-96

Download citation

  • Received:

  • Accepted:

  • Published:

  • DOI: https://doi.org/10.1186/1471-2105-7-96

Keywords