matrix2meme

Usage:

matrix2meme [options]

Description

Convert count or frequency matrices separated by empty lines into MEME motifs.

Inputs

Count/Frequency Matrices

Reads matrices from standard input separated by empty lines.

Example DNA count matrix:

1 5 6 3
5 5 5 0
12 1 1 1

Output

Writes MEME motif format to standard output.

A probability matrix and optionally a log-odds matrix are output for each motif in the file. The probability matrix is computed using pseudo-counts consisting of the background frequency (see -bg, below) multiplied by the total pseudocounts (see -pseudo, below). The log-odds matrix uses the background frequencies in the denominator and is log base 2.

The motifs are named based on their order in the file but their consensus sequence is used as the alternate name.

Options

Option Parameter Description Default Behaviour
General Options
-dna  Use the DNA alphabet. Note that this is actually the default. The DNA alphabet is used.
-protein  Use the protein alphabet. The DNA alphabet is used.
-alphalphabet file Use the alphabet defined in the file. The DNA alphabet is used.
-orienauto|col|row Set the matrix orientation. The matrix orientation is automatically detected.
-numseqscount Assume frequences based on count sequence sites. The motif is created as if it was made from 20 sequence sites.
-bgbackground fileThe background file should be a Markov background model. It contains the background frequencies of letters use for assigning pseudocounts. The background frequencies will be included in the resulting MEME file.Uses uniform background frequencies.
-pseudototal pseudocountsAdd total pseudocounts times letter background to each frequency.No pseudocount is added.
-logoddsInclude a log-odds matrix in the output. This is not required for versions of the MEME Suite ≥ 4.7.0.The log-odds matrix is not included in the output.
-urlwebsiteThe provided website URL will be stored with the motif and this can be used by MEME Suite programs to provide a direct link to that information in their output. If website contains the keyword MOTIF_NAME the IUPAC code is substituted in place of MOTIF_NAME in the output.
For example if the url is
http://big-box-of-motifs.com/motifs/MOTIF_NAME.html
and the IUPAC code is ATGATG, the motif will contain a link to
http://big-box-of-motifs.com/motifs/ATGATG.html
The output does not include a URL with the motifs.