Position weight matrices (PWM) are simple models commonly used in motif finding algorithms to identify short functional elements, such as cis-regulatory motifs, on genes. When few experimentally verified motifs are available, estimation of the PWM may be poor. Genetic Algorithm Method for Optimizing a Position Weight Matrix (GAPWM) implements a simple method to improve a poorly estimated PWM using chromatin immunoprecipitation (ChIP) data.

This program was developed by Leping Li of the National Institute of Environmental Health Sciences, Research Triangle Park, North Carolina 27709.


This work is made available under the GPL v2.


Download the source code for the distribution of GAPWM along with usage documentation and examples (7MB)


In the main directory of the distribution, type

  • ./configure
  • then
  • make
  • make install

By default, the configure program will direct the executable files to /usr/local/bin which, in most cases, requires the user to "su" to root prior to the "make install" step. The target directory for the executable file can be overridden by specifying the --prefix option during the configure phase. For example,

  • ./configure --prefix=/home/gapwm_user

will direct the executables into /home/gapwm_user/bin directory.

The configure application accepts several arguments to tailor the build and installation process. Please see the INSTALL file contained in the root directory of the distribution for further details.

The source code and package were developed using Fedora. Although the intent was to make the code portable to most U*IX variants, you may encounter minor build issues on other platforms. Feedback regarding any difficulties you may experience will be very helpful in improving the distribution package.


Leping Li, Ph.D.
Principal Investigator
Tel 984-287-3836
Fax 919-541-4311
[email protected]