unibind-database
google-deepmind/science-skills
Query experimentally validated transcription factor binding sites across 9 species from the UniBind database.
What is unibind-database?
UniBind is a database of direct TF–DNA interactions integrating ChIP-seq peaks with JASPAR profiles. Use it to retrieve binding site coordinates (BED/FASTA), list available datasets by species/cell line/TF, or download datasets for local analysis. Do not use for genomic interval queries, motif models, or expression data.
- Query and list transcription factor binding sites across 9 species
- Download binding site coordinates in BED or FASTA format to local directories
- Filter datasets by species, TF name, cell line, collection, data source, and other metadata
- Retrieve dataset details and collection information
- Handle large result sets with pagination and field extraction via jq
How to install unibind-database
npx skills add https://github.com/google-deepmind/science-skills --skill unibind-database- uv package manager installed and on PATH
- User must review UniBind license terms at https://unibind.uio.no/ before first use
How to use unibind-database
- 1.Run `uv run <SKILL DIR>/scripts/unibind_api.py list_species` to see available organisms
- 2.Use `list_datasets` with filters (--species, --tf-name, --cell-line, --data-source) to find relevant datasets
- 3.Run `get_dataset <dataset_id>` to retrieve metadata and details for a specific dataset
- 4.Execute `download_tfbs <dataset_id> --output-dir <path> --format bed` to download binding site coordinates
- 5.For large result sets, pipe output through `jq` to extract specific fields (e.g., `| jq "results[].tf_name"`
Use cases
- Download CTCF binding sites for Homo sapiens from ENCODE to analyze regulatory regions locally
- List all available TFs and cell lines in the UniBind database to plan a multi-species binding analysis
- Filter ChIP-seq datasets by biological condition and p-value threshold to identify high-confidence binding events
- Retrieve SMAD3 binding coordinates for a specific breast cancer cell line dataset for downstream bedtools analysis
- Query binding site datasets across mouse and human to compare conserved TF binding patterns
- Genomics researchers analyzing transcription factor binding patterns
- Bioinformaticians performing ChIP-seq data integration and analysis
- Computational biologists studying gene regulation across species
- Researchers building regulatory element databases or annotation pipelines
unibind-database FAQ
No. UniBind only supports querying by species, TF name, cell line, and dataset metadata. Use ensembl-database for interval-based lookups or bedtools for local intersection analysis.
BED and FASTA formats are supported via the `download_tfbs` command with `--format bed` (default) or `--format fasta`.
Pipe output through `jq` to extract only needed fields, e.g., `| jq "results[].name"`, or use `--page` and `--page-size` arguments for pagination.
No. Use jaspar-database for motif models (PFMs) and other tools for expression data. UniBind stores only direct TF-DNA binding events.
The provided wrapper scripts automatically enforce required rate limits. Always use the helper scripts rather than accessing the API directly.
Full instructions (SKILL.md)
Source of truth, from google-deepmind/science-skills.
name: unibind-database description: >- Queries the UniBind database for experimentally validated transcription factor (TF) binding sites. Use when retrieving direct TF-DNA interaction datasets, downloading binding site coordinates (BED/FASTA) for local analysis, or listing available datasets by species, cell line, or TF name. Don't use to query specific intervals, locations, genes, motif models or expression data.
UniBind Database Skill
UniBind is a database of direct TF–DNA interactions across 9 species, integrating ChIP-seq peaks with JASPAR TF binding profiles via the DAMO framework.
Prerequisites
uv: Read theuvskill and follow its Setup instructions to ensureuvis installed and on PATH.- User Notification: If .licenses/unibind_database_LICENSE.txt does not already exist in the workspace root directory then (1) prominently notify the user to check the terms at https://unibind.uio.no/ and https://unibind.uio.no/api/overview, then (2) create the file recording the notification text and timestamp.
Quick Start
Query commands print JSON to stdout by default. Most outputs are small enough to
read directly. For large outputs (list_cell_lines, list_tfs), pipe through
jq to extract only the fields you need.
uv run <SKILL DIR>/scripts/unibind_api.py list_species
The download_tfbs command writes BED/FASTA files to --output-dir instead.
You may optionally use --output <path> on any query command to save results to
a file if needed.
Core Rules
- Use the Wrapper: ALWAYS execute the provided helper scripts to query the database rather than accessing the database directly. The scripts automatically enforce the required rate limit gracefully.
- Output: Query commands print JSON to stdout. Most responses are compact and can be read directly.
- Large Results:
list_cell_linesandlist_tfsproduce large output. Pipe these throughjqto extract specific fields rather than reading the full output into context. - Saving to File: Use
--output <path>when you need to reference the data later or when processing very large results withjq. - Pagination: Use
--pageand--page-size(max 1000) to chunk large result sets. - Ordering: Use
--order field_name(prefix with-for descending) on any list command. - Notification: If this skill is used, ensure this is mentioned in the output.
Utility Scripts
Replace <SKILL DIR> with the absolute path to this skill's directory.
1. List Species
uv run <SKILL DIR>/scripts/unibind_api.py list_species
2. List Collections
uv run <SKILL DIR>/scripts/unibind_api.py list_collections
3. List Cell Lines & TFs (large output — use jp)
These commands return large datasets. Use uvx --from jmespath jp to extract
only the fields you need.
uv run <SKILL DIR>/scripts/unibind_api.py list_cell_lines | uvx --from jmespath jp "results[].name"
uv run <SKILL DIR>/scripts/unibind_api.py list_tfs | uvx --from jmespath jp "results[].tf_name"
4. List and Filter Datasets (and Profile-Specific Datasets)
Filter datasets using the following arguments:
--species(e.g., "Homo sapiens")--tf-name(e.g., "CTCF")--cell-line(e.g., "mESC")--collection(e.g., Permissive, Robust)--search(a search term)--biological-condition(biological condition or source)--data-source(source of data, e.g., "ENCODE")--has-pvalue("true" or "false")--identifier(e.g., "GSE60130")--jaspar-id(JASPAR database profile matrix ID)--model(prediction model)--summary(summary filter)--threshold-pvalue(p-value threshold)
Use list_datasets for standard datasets, or list_specific_datasets for
profile-specific queries.
uv run <SKILL DIR>/scripts/unibind_api.py list_datasets --species "Homo sapiens" --tf-name "CTCF" --data-source "ENCODE"
uv run <SKILL DIR>/scripts/unibind_api.py list_specific_datasets --species "Mus musculus" --cell-line "mESC"
5. Get Dataset Details
uv run <SKILL DIR>/scripts/unibind_api.py get_dataset "EXP047889.HMLE-Twist-ER_breast_cancer.SMAD3"
6. Download TFBS Files (BED / FASTA)
Downloads all TFBS files for a dataset to a local directory. Use --format bed
(default) or --format fasta.
uv run <SKILL DIR>/scripts/unibind_api.py download_tfbs "EXP047889.HMLE-Twist-ER_breast_cancer.SMAD3" --output-dir /tmp/tfbs --format bed
Anti-Patterns
- DON'T attempt to use the UniBind API to query specific genomic intervals, locations, or genes.
- DON'T guess or hallucinate genome coordinates. Always use
ensembl-databaseas an external check if you're pulling local BED tracks for offline bedtools intersection. - DON'T use for motif models (PFMs). Use the jaspar-database skill instead.
- DON'T use for gene expression data. UniBind only stores binding events.
- DON'T assume tissue-specific expression from dataset lists alone.
- DON'T use
catto read large JSON output files into context. The output is too large. Usejqor write your own code to parse the output files.
Related skills
More from google-deepmind/science-skills and the wider catalog.

uniprot-database
Access protein metadata, sequences, and functional annotations from UniProtKB, UniParc, and UniRef databases.

uv
Fast Python package manager for Science Skills—checks installation and adds to PATH.

workflow-skill-creator
Distill completed workflows into reusable agent skills by extracting patterns and packaging them systematically.

alphafold-database-fetch-and-analyze
Retrieve and analyze AlphaFold predicted protein structures from UniProt IDs with confidence metrics and domain analysis.

code-reviewer
Review code changes and pull requests for correctness, maintainability, and project standards.

docs-changelog
Generates and formats changelog files for new releases with standardized highlights and version tracking.