Terminal
Terminal/Skill
Fetches transcription factor binding profiles from JASPAR, including motif matrices, TF metadata, and gene symbol lookups.
By Google
Works with
npx skills add google-deepmind/science-skills --skill jaspar-databaseJASPAR is the definitive open-access database for Transcription Factor (TF) binding profiles, stored as Position Frequency Matrices (PFMs).
Use this skill to map abstract sequence motifs or genomic regions to specific biological regulators (e.g., "what TFs bind here?" or "what is the motif for CTCF?").
uv: Read the uv skill and follow its Setup instructions to ensure
uv is installed and on PATH.CRITICAL: You MUST respect the JASPAR API Terms of Use by adhering to the following:
jaspar_api.py script automatically
chunks larger requests for you to bypass this limitation when querying
larger regions.get_tf_motif, get_tf_metadata, and get_tf_pwm
require a stable JASPAR Matrix ID (e.g., MA0488.2). If a user provides a
gene symbol (e.g., JUN), you must resolve it first using resolve_tf_id.tax_id to ensure targeted
searches. Common IDs: Human=9606, Mouse=10090.Run all commands using the bundled Python script:
Maps a transcription factor name to a stable Matrix ID. Required step before fetching motifs if only a gene name is provided.
uv run scripts/jaspar_api.py resolve_tf_id --name "JUN" --tax-id 9606
Retrieves the raw Position Frequency Matrix for a specific TF. Supports
--format flag.
uv run scripts/jaspar_api.py get_tf_motif --matrix-id "MA0488.2"
uv run scripts/jaspar_api.py get_tf_motif --matrix-id "MA0488.2" --format meme
Retrieves TF class, family, and links to external databases (e.g., UniProt).
Supports --format flag.
uv run scripts/jaspar_api.py get_tf_metadata --matrix-id "MA0488.2"
uv run scripts/jaspar_api.py get_tf_metadata --matrix-id "MA0488.2" --format yaml
Fetches the PFM for a matrix and converts it to log-odds scores (PWM).
uv run scripts/jaspar_api.py get_tf_pwm --matrix-id "MA0488.2"
uv run scripts/jaspar_api.py get_tf_pwm --matrix-id "MA0488.2" --pseudocount 0.1
Infers potential JASPAR matrix profiles from a raw transcription factor protein sequence.
uv run scripts/jaspar_api.py infer_from_sequence --sequence "QAQLLPSHHVG"
Retrieves metadata for a JASPAR TF Flexible Model. (Note: The JASPAR TFFM endpoints occasionally experience 500 Internal Server errors).
uv run scripts/jaspar_api.py get_tffm --tffm-id "TFFM0001.1"
The get_tf_motif and get_tf_metadata commands accept an optional --format
flag. Supported formats: json (default), jsonp, jaspar, meme,
transfac, pfm, yaml.
JUN) to get_tf_motif. You must pass
the MA... Matrix ID.--tax-id when resolving a TF name.