jaspar-api

$npx mdskill add aipoch/medical-research-skills/jaspar-api

Query JASPAR database for transcription factor binding profiles via REST.

  • Retrieves matrix details, collections, and species data for biological analysis.
  • Depends on the JASPAR REST API and scripts/jaspar_client.py implementation.
  • Executes reproducible workflows requiring concrete validation or file-based results.
  • Delivers structured data for evidence-based insight tasks instead of generic answers.

SKILL.md

.github/skills/jaspar-apiView on GitHub ↗
---
name: jaspar-api
description: Access JASPAR database for transcription factor binding profiles (matrices), collections, and species via REST API. Use when user wants to search for transcription factors, retrieve matrix details (PFM/PWM), infer profiles from protein sequences, or explore JASPAR collections.
license: MIT
author: aipoch
---
> **Source**: [https://github.com/aipoch/medical-research-skills](https://github.com/aipoch/medical-research-skills)
# JASPAR API

This skill provides access to the JASPAR database (https://jaspar.elixir.no/).

## When to Use

- Use this skill when you need access jaspar database for transcription factor binding profiles (matrices), collections, and species via rest api. use when user wants to search for transcription factors, retrieve matrix details (pfm/pwm), infer profiles from protein sequences, or explore jaspar collections in a reproducible workflow.
- Use this skill when a evidence insight task needs a packaged method instead of ad-hoc freeform output.
- Use this skill when the user expects a concrete deliverable, validation step, or file-based result.
- Use this skill when `scripts/jaspar_client.py` is the most direct path to complete the request.
- Use this skill when you need the `jaspar-api` package behavior rather than a generic answer.

## Key Features

- Scope-focused workflow aligned to: Access JASPAR database for transcription factor binding profiles (matrices), collections, and species via REST API. Use when user wants to search for transcription factors, retrieve matrix details (PFM/PWM), infer profiles from protein sequences, or explore JASPAR collections.
- Packaged executable path(s): `scripts/jaspar_client.py`.
- Reference material available in `references/` for task-specific guidance.
- Structured execution path designed to keep outputs consistent and reviewable.

## Dependencies

- `Python`: `3.10+`. Repository baseline for current packaged skills.
- `Third-party packages`: `not explicitly version-pinned in this skill package`. Add pinned versions if this skill needs stricter environment control.

## Example Usage

See `## Usage` above for related details.

```bash
cd "20260316/scientific-skills/Evidence Insight/jaspar-api"
python -m py_compile scripts/jaspar_client.py
python scripts/jaspar_client.py --help
```

Example run plan:
1. Confirm the user input, output path, and any required config values.
2. Edit the in-file `CONFIG` block or documented parameters if the script uses fixed settings.
3. Run `python scripts/jaspar_client.py` with the validated inputs.
4. Review the generated output and return the final artifact with any assumptions called out.

## Implementation Details

- Execution model: validate the request, choose the packaged workflow, and produce a bounded deliverable.
- Input controls: confirm the source files, scope limits, output format, and acceptance criteria before running any script.
- Primary implementation surface: `scripts/jaspar_client.py`.
- Reference guidance: `references/` contains supporting rules, prompts, or checklists.
- Parameters to clarify first: input path, output path, scope filters, thresholds, and any domain-specific constraints.
- Output discipline: keep results reproducible, identify assumptions explicitly, and avoid undocumented side effects.

## Usage

### 1. Search Matrices (Profiles)

Search for transcription factor binding profiles.

```bash
python scripts/jaspar_client.py matrix_list --search "SMAD3" --tax_group "Vertebrates"
```

Supported parameters:
- `--search`: Search term
- `--collection`: e.g., CORE, CNE
- `--tax_group`: e.g., Vertebrates, Plants
- `--tax_id`: e.g., 9606 (Human)
- `--tf_class`: Transcription factor class
- `--version`: `latest` (default) or specific
- `--page_size`: Results per page

### 2. Get Matrix Details

Retrieve details for a specific matrix ID (e.g., MA0001.1).

```bash
python scripts/jaspar_client.py matrix_read MA0001.1
```

### 3. Infer Profile from Sequence

Infer matrix profiles given a protein sequence.

```bash
python scripts/jaspar_client.py infer "SEQUENCE_STRING"
```

### 4. Collections and Species

List collections:
```bash
python scripts/jaspar_client.py collections_list
```

Get details for a species (by tax_id):
```bash
python scripts/jaspar_client.py species_read 9606
```

## References

See `references/api_docs.md` for full parameter lists and endpoint details.

More from aipoch/medical-research-skills

SkillDescription
3d-molecule-ray-tracerGenerate photorealistic rendering scripts for PyMOL and UCSF ChimeraX.
abstract-summarizerTransform lengthy academic papers into concise, structured 250-word abstracts.
abstract-trimmerPrecision editing tool that reduces abstract word count through intelligent compression techniques, maintaining scientific rigor while meeting strict journal and conference requirements.
academic-abstract-refinerRefines long medical academic texts into SCI-style unstructured Chinese and English abstracts; use when you need to condense drafts/reports/summaries into bilingual abstracts and generate Summary_Report.md.
academic-cv-generatorGenerate structured academic CVs from free-form Chinese/English text and export to Word (.docx). Use this skill when you are asked to organize, generate, or optimize an academic CV (e.g., publications/projects/awards) into a consistent, formatted document with uniform-colored section headers and optional bilingual output.
academic-highlight-generatorGenerates submission-ready Elsevier/SCI Highlights from manuscript text or extracted PDF/DOCX/TXT content. Use when a user needs 3-5 concise, evidence-grounded highlight bullets for a research paper, review, meta-analysis, case report, or bioinformatics manuscript.
academic-norm-reviewDetects content similarity, verifies standardized citations and abbreviations, and flags potential academic integrity risks; use it before submission, during academic writing QA, or for compliance reviews.
academic-poster-generatorComplete workflow for generating academic research posters from PDF literature; use when you need to extract paper content from PDFs and produce a LaTeX-based poster (beamerposter/tikzposter/baposter) with mandatory figure generation and a final rendered HTML deliverable.
acronym-unpackerIntelligent medical abbreviation disambiguation tool that resolves ambiguous acronyms using clinical context, specialty-specific knowledge, and document-level semantic analysis.
active-comparator-single-soc-faers-safety-comparisonGenerates complete FAERS pharmacovigilance study designs for multi-drug or class-level safety comparison inside one predefined SOC or AE family using active comparators, disproportionality analysis, subgroup characterization, and reviewer-facing evidence control.