← Về thư mục
📄 / / profiles / r-and-d / raw_evidence / OpenAI4S / skills / bioskills / bio-sequence-manipulation-motif-search / references / usage-guide.md

Motif Search - Usage Guide

Overview

This skill enables AI agents to help you find patterns, motifs, and subsequences in biological sequences using Biopython. It covers exact matches, overlapping-match counting, regex and IUPAC degenerate patterns, position weight matrix (PWM/PSSM) scoring with reproducible thresholds, and reading motif matrices from JASPAR, MEME, and TRANSFAC files.

Prerequisites

pip install biopython

Quick Start

Tell your AI agent what you want to do:

Example Prompts

"Find all positions where GAATTC occurs in my sequence, counting overlapping hits"

Ambiguous / Degenerate Pattern

"Find all matches to the pattern GATNNTC where N is any base"

Regulatory Elements

"Search for TATA box variants in the first 500 bp"

Binding-Site Scoring

"Build a PWM from these aligned binding sites and scan my sequence for matches above a 1% false-positive threshold"

Reading Motif Matrices

"Load this JASPAR PFM and report its consensus, then scan my promoter on both strands"

Both Strands

"Score the forward and reverse strands separately and report which strand each hit is on"

What the Agent Will Do

  1. Choose the search method from the pattern type (exact, degenerate IUPAC, regex, or PWM)
  2. Use an overlap-aware method when overlapping hits matter (lookahead or nt_search)
  3. For a PWM, set pseudocounts and background before reading the PSSM, then derive a threshold from the score distribution
  4. Scan both strands and label each hit's strand
  5. Return positions, matched subsequences, and scores

Pattern Types

Tips