fimo

Usage: fimo [options] <sequence file> <motif file>

Description:

Scan a sequence for occurrences of given motifs.

The algorithm is as follows:

S = a DNA sequence
M = a motif frequency matrix
B = the background frequencies of the four bases in S

// Build matrix of all possible scores
for i in nucleotide bases {
  for j in positions of M {
    foreground = M[j][i]
    background = B[j]
    score_matrix[i][j] = log_2(foreground / background)
  }    
}
// Calculate p-values of all possible scores for motif sized windows
// windows in the alignment.
pvalues = get_pv_lookup(score_matrix, B)

// Calculate score for each motif sized window in the alignment.
for i in columns of A {
  score = 0
  for j in positions of M {
    index = calculate the index of S[i + j] in the nucleotide alphabet
    score = score + score_matrix[index][j]
  }    
  print pvalues[score]
}

Input:

Output:

The output is in GFF (version 2) format. The output contains two types of lines: one line per sequence, and one line per motif occurrence. Sequences receive no score. For motif occurrences, the score is an unadjusted p-value. In addition, for motif lines, the optional "attribute" field contains two attributes: the motif number from the MEME file, and the sequence that the motif matches.

Options:

Warning messages: None

Bugs and future enhancements:

Meta-MEME program documentation

Meta-MEME home