Description:
-----------

This is a promoter analysis package for Arabidopsis thaliana that does the following:

1. Reads in a file with AT numbers
2. Extracts the Upstream regions for these genes (Any number between 1 and 2000 bps)
3. Locates cis-elements on both strands of these promoters using a pre-defined list of AT cis-elements
4. Calculates statistical significance of each motif found in these promoters
5. Finds combinations of motifs among gene promoters and calculates the significance of each of these combinations using Hypergeometric distribution
6. Renders siginificant motifs output set in a form usable by MotifSee.

Directions:
-----------
Place the file with At Numbers of genes you want to analyze (1 At number per line) in THIS dierctory. An example of such a file is the NF-KB_AtNums.txt file in the ./example/ directory.

Run the following:
./compile.sh

The script will print out the input options. Following is a description of files required:

1. Input file of AT numbers - one AT number per line
2. Input file of motifs - Tab delimited, Motif_Name(\t)Motif_Regular_Expression
3. Input analysis file - Tab delimited, Analysis_Name(\t)Analysis_Description
4. Always run the scripts with database option -z 0 and option -c 1 for AT.

You need not supply the options -s and -t if expression data analysis is not being done. In that case, comment out the error checks for these options in the compile.sh file.

Example:
-------
An example of all result files produced as a result of running the script on NF-KB genes is located in the ./example folder.

Data files in package:
----------------------
./data/AT_Genome_Upstream.fa //All upstream regions we have are as seen on the positive strand
./data/AT_motifs_working //All AT motifs to be searched
./data/motif_names //This can be generated instead of being ported
./data/AT_Genomewide_Motifs.txt // Result of FindMotifs.pl run on entire genome
./genomemotifcount //Result of GetGeneCounts run on entire AT genome upstream

Scripts:
-------
Please refer to the README file in the ./scripts/ directory for further details

Questions:
---------

email: apati@vt.edu
