Background

Microarray techniques have revolutionized genomic research by making it possible to monitor the expression of thousands of genes in parallel. Due to the amount of data being produced by this technology, gene reduction is extremely important because: (i) it generally reduces the computational cost of machine learning techniques, (ii) it usually increases the accuracy of classification algorithms and (iii) it provides clues to researches about genes that are important in a given context (i.e. biomarkers for certain diseases, etc.) [1].

Related with this domain, the area of gene identification has been previously addressed by Furman et al. through the utilization of information theory [2]. Several methods have been proposed to reduce dimensions in the microarray data domain. These works include the application of genetic algorithms [3], wrapper approaches [4], support vector machines [5, 6], spectral biclustering [7], etc. Other approaches focus their attention on redundancy reduction and feature extraction [8, 9], as well as the identification of similar gene classes making prototypes-genes [10].

In addition, there are also several packages implemented in R for feature selection as iterativeBMA [11], varSelRF [12, 13] or R-SVM [14]. iterativeBMA is a Bioconductor R package which performs multivariate feature selection for multiclass microarray data and it is based on the bayesian model averaging (BMA) approach. The varSelRF package implements a method for gene selection based on the measures of variable importance which return the random forest algorithm and it is also suitable for multivariate and multiclass datasets. The R-SVM method is similar to the varSelRF in the sense that it uses the relative importance of features in SVM classifiers to select relevant genes but it is only applicable to binary classifications. Finally, it is also considered the ttest function of the genefilter package (available from Bioconductor) which implements the conventional t-test method for feature selection. Table 1 shows a comparative analysis of these R-based methods and the proposed DFP algorithm.

Table 1 Comparative analysis of R-based methods for gene selection

In this context, there are many advantages of applying fuzzy logic to the analysis of gene expression data: (i) fuzzy logic inherently accounts for noise in the data because it extracts trends, not crisp values; (ii) in contrast to other automated decision making techniques, algorithms in fuzzy logic are cast in the same language used in day-to-day conversation, so conclusions are easily interpretable and can be extrapolated; (iii) fuzzy logic techniques are computationally efficient and can be scaled to include a high number of components [15].

Based on these assumptions, the aim in writing DFP was to provide a simple-to-use library to perform gene selection and data reduction by the application of a supervised fuzzy pattern algorithm able to discretize and filter existing gene expression profiles.

Implementation

DFP is an extension package for the programming language and statistical environment R [16]. The software has been developed to perform fuzzy analysis and gene reduction using microarray data. It employs object classes and functions that are also standard in other packages of the Bioconductor project [17]. The whole algorithm comprises of three main steps. First, it represents each gene value in terms of one from the following linguistic labels: Low, Medium, High and their intersections LowMedium and MediumHigh. The output is a fuzzy microarray descriptor (FMD) for each existing sample (microarray) containing the discretized gene expression values. The second phase aims to find all genes that best explain each class, constructing a supervised fuzzy pattern (FP) for each class (pathology). Starting from the previous generated fuzzy patterns, the package is able to discriminate those genes that can provide a substantial discernibility between existing classes, generating an unique discriminant fuzzy pattern (DFP).

Discretizing microarray data using fuzzy labels

In the first step, given a set of n expressed sequence tags (ESTs) or genes belonging to m microarrays, the discretization process is based on determining the membership function of each gene to the previously linguistic labels. In this package, two types of membership functions are used (see additional file 1:MembershipFunctions.pdf for more details about the mathematical background). Firstly, a polynomial approximation of a Gaussian membership function which achieve smoothness for the degree of membership of 'normal' expression levels of a gene, and secondly, a polynomial approximation of two sigmoidal membership functions which are able to specify asymmetric membership functions for the 'low' and 'high' expression levels (see Figure 1).

Figure 1
figure 1

Shape of membership function for a specific gene and possible assigned labels given a threshold θ = 0.7. The centre and amplitude of each membership function depend on the mean and on the variability of the available data respectively. The Medium membership function is considered symmetric whereas the Low and High functions are asymmetric in the extremes.

The algorithm defines a threshold value θ, which need to be established in order to discretize the original data in a binary way. For concrete values of threshold θ, specific zones of the gene values domain for which none of the labels will be activated can exist (neighbor region of the intersection of labels Medium and High in Figure 1). This fact must be interpreted as the specific value of the gene is not enough to assign it a significant linguistic label at the significance degree of membership fixed by threshold θ.

On the other hand, one expression level can simultaneously activate two linguistic labels, since at the significance level given by θ, any assignment of the measure to a linguistic label is significant (neighbor region of the intersection of labels Low and Medium in Figure 1).

Assembling a supervised fuzzy pattern of representative genes

A fuzzy pattern is a higher concept built from a set of FMDs belonging to the same class, and it can be viewed as a prototype of them. The FP corresponding to a given class is constructed by selecting the genes with a label which has a relative frequency of appearance equal to or greater than a predefined ratio π (0 < π ≤ 1). Therefore, the FP captures relevant and common information about the discretized gene expression levels of the FMDs that summarizes.

The predefined ratio π controls the degree of exigency for selecting a gene as a member of the pattern, since the higher the value of π, the fewer the number of genes which make up the FP. The pattern's quality of fuzziness is given by the fact that the labels, which make it up, come from the linguistic labels defined during the transformation into FMD of an initial observation. Moreover, if a specific label of a gene is very common in all the examples belonging to a given class, this feature will be selected to be included in the FP. Therefore, a frequency-based criterion is used for selecting a gene as part of the fuzzy pattern.

Recognizing valuable genes

The goal of gene selection is to determine a reduced set of genes, which are meaningful given the existing knowledge. Here, the algorithm introduces the notion of discriminant fuzzy pattern with regard to a collection of FPs. A DFP version of a FP only includes those genes that can serve to differentiate it from the rest of the patterns. Therefore, the computed DFP for a specific FP is different depending on what other FPs are compared with it. It's not surprising that the genes used to discern a specific class from others (by mean of its DFP) will be different if the set of rival classes also changes. The pseudo code algorithm used to compute the final DFP containing the selected genes can be consulted in additional file 2:DFPpseudocode.pdf.

Results and discussion

The package DFP has been designated for performing fuzzy analysis and gene reduction from a set of microarray experiments. DFP, like any R package, is command-line driven. The functions are called by the user, possibly with arguments and options. Any session using DFP in R starts with the command

library (DFP)

which makes the functions of DFP available in the R environment.

A very quick start example could be carried out using the artificial data set rmadataset, included in the package

data(rmadataset)

Once the data is loaded, the whole algorithm can be executed calling its main function discriminantFuzzyPattern(rmadataset) which will work out with the default parameter values, or step by step as in the following example

mfs<-calculateMembershipFunctions

+                              (rmadataset, skipFactor = 3)

which calculates the membership functions (Low, Medium, High) for each gene. These functions can be displayed using the following command (see Figure 2)

Figure 2
figure 2

Membership functions belonging to the first two genes. Vertical lines show the expression values corresponding to each microarray sample.

plotMembershipFunctions

+         (rmadataset, mfs, featureNames(rmadataset [1:2])

DFP can now convert gene expression values (raw data) into linguistic labels. A gene will have an assigned linguistic label if its expression level exceeds the significance degree of membership fixed by threshold zeta (θ). It is done by the command

dvs<-discretizeExpressionValues

+              (rmadataset, mfs, zeta = 0.5, overlapping = 2)

showing part of the results with the following function

showDriscreteValues

+                   (dvs, featureNames(rmadataset) [1:10],

+                               c("healthy", "AML-inv")))

The next step involves the generation of a fuzzy pattern that summarizes the most relevant genes of each category. A gene will belong to a FP if its assigned label is present with a frequency higher than piVal (π). It is done by the command

fps<-calculateFuzzyPatterns

+               (rmadataset, dvs, piVal = 0.9, overlapping)

showing part of the results with the following function

showFuzzyPatterns (fps, "healthy") [21:50]

The last step calculates the discriminant fuzzy pattern by including those genes present in two or more fuzzy patterns with different assigned labels. The following command performs this operation

dfps<-calculateDiscriminantFuzzyPattern (rmadataset, fps)

The selected genes can now be shown in both text and graphical mode (see Figure 3) using the function

Figure 3
figure 3

DFP of selected genes (in rows) with its appearance frequency for each category (in columns). In the first table, a NA value is assigned if the frequency of appearance is lower or equal than the piVal parameter, meaning that this gene does not belong to the FP of this category.

plotDiscriminantFuzzyPattern(dfps, overlapping = 2)

Conclusion

DFP is a new Bioconductor R package that performs gene selection and data reduction by the application of a supervised fuzzy pattern algorithm. As other Bioconductor/R packages, DFP offers a high level of standardized documentation through its vignette and the function help pages.

The implemented algorithm has also been coded and tested in GENE CBR, a multiplatform open source tool for microarray analysis [18]. The results obtained using publicly available data sets validate the effectiveness of the proposed algorithm [19].

Availability and requirements

Project name: DFP

Project home page: http://bioconductor.org/packages/2.3/bioc/html/DFP.html

Operating systems: Platform independent

Programming language: R

Other requirements: R, Bioconductor

License: GNU GPL