Sequence

Motif Discovery

Find a motif NOBODY TYPED: given a set of sequences (multi-record FASTA), report the short pattern they share, as a consensus, a position-weight matrix and one site per sequence. This is the opposite question from motif_finder, which searches for a pattern you already have. Gibbs site sampler (Lawrence et al., Science 1993), one occurrence per sequence, both strands by default. ⚠️ READ found BEFORE THE CONSENSUS: a Gibbs sampler returns a motif from ANY input, including pure noise, because its objective has a maximum whether or not anything is there — so every run is scored against shuffled copies of the same sequences, which hold the same length and base composition and no arrangement. found is true only when the real alignment beats every shuffle outright AND clears the control mean by the margin in control.zScore; when it is false the consensus and sites are still returned, so you can see what was rejected. Measured: 0 of 20 pure-noise sets were reported as found, and a 10-mer planted in all 12 sequences was recovered exactly on 5 of 5 seeds. The sampler is deterministic — the same input gives the same answer, so a saved or shared result reproduces; pass a different seed to see whether the motif survives a different starting point, because one that does not is weak.

post/motif_discover

Request

  • Base URL: https://seqbench.com/api/v1
  • URL: https://seqbench.com/api/v1/motif_discover
  • Auth: none required

Request body

sequencesstring required

Two or more sequences as multi-record FASTA. Records shorter than the motif width are left out and named in notes. At most 500 sequences and 100,000 residues in total.

widthinteger

Motif length in bases (4-30). The width is given rather than searched for: trying every width and keeping the best score would select on the same quantity the control measures, and a wider motif scores higher for free.

bothStrandsboolean

Allow a site on either strand. A motif has no canonical orientation, so the consensus may come back as the reverse complement of the one you expect.

seedinteger

Sampler seed. Fixed by default so one input gives one answer; change it to test whether the motif is stable.

Response

Tool ran successfully.

okunknown required
toolstring required

The tool slug that ran.

resultobject required

Tool-specific output object. Its shape depends on the tool — call GET /{tool} or see the docs for each tool's fields.

Example response

{
  "provenance": {
    "apiVersion": "1.1.0"
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.