Source: 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.
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:
- Confirm the user input, output path, and any required config values.
- Edit the in-file
CONFIG block or documented parameters if the script uses fixed settings.
- Run
python scripts/jaspar_client.py with the validated inputs.
- 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.
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).
python scripts/jaspar_client.py matrix_read MA0001.1
3. Infer Profile from Sequence
Infer matrix profiles given a protein sequence.
python scripts/jaspar_client.py infer "SEQUENCE_STRING"
4. Collections and Species
List collections:
python scripts/jaspar_client.py collections_list
Get details for a species (by tax_id):
python scripts/jaspar_client.py species_read 9606
References
See references/api_docs.md for full parameter lists and endpoint details.
1---2name: jaspar-api3description: 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.4license: MIT5---6> **Source**: [https://github.com/aipoch/medical-research-skills](https://github.com/aipoch/medical-research-skills)
7
8# JASPAR API
9
10This skill provides access to the JASPAR database (https://jaspar.elixir.no/).
11
12## When to Use
13
14- 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.
15- Use this skill when a evidence insight task needs a packaged method instead of ad-hoc freeform output.
16- Use this skill when the user expects a concrete deliverable, validation step, or file-based result.
17- Use this skill when `scripts/jaspar_client.py` is the most direct path to complete the request.
18- Use this skill when you need the `jaspar-api` package behavior rather than a generic answer.
19
20## Key Features
21
22- 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.
23- Packaged executable path(s): `scripts/jaspar_client.py`.
24- Reference material available in `references/` for task-specific guidance.
25- Structured execution path designed to keep outputs consistent and reviewable.
26
27## Dependencies
28
29- `Python`: `3.10+`. Repository baseline for current packaged skills.
30- `Third-party packages`: `not explicitly version-pinned in this skill package`. Add pinned versions if this skill needs stricter environment control.
31
32## Example Usage
33
34See `## Usage` above for related details.
35
36```bash
37cd "20260316/scientific-skills/Evidence Insight/jaspar-api"
38python -m py_compile scripts/jaspar_client.py
39python scripts/jaspar_client.py --help
40```
41
42Example run plan:
431. Confirm the user input, output path, and any required config values.
442. Edit the in-file `CONFIG` block or documented parameters if the script uses fixed settings.
453. Run `python scripts/jaspar_client.py` with the validated inputs.
464. Review the generated output and return the final artifact with any assumptions called out.
47
48## Implementation Details
49
50- Execution model: validate the request, choose the packaged workflow, and produce a bounded deliverable.
51- Input controls: confirm the source files, scope limits, output format, and acceptance criteria before running any script.
52- Primary implementation surface: `scripts/jaspar_client.py`.
53- Reference guidance: `references/` contains supporting rules, prompts, or checklists.
54- Parameters to clarify first: input path, output path, scope filters, thresholds, and any domain-specific constraints.
55- Output discipline: keep results reproducible, identify assumptions explicitly, and avoid undocumented side effects.
56
57## Usage
58
59### 1. Search Matrices (Profiles)
60
61Search for transcription factor binding profiles.
62
63```bash
64python scripts/jaspar_client.py matrix_list --search "SMAD3" --tax_group "Vertebrates"
65```
66
67Supported parameters:
68- `--search`: Search term
69- `--collection`: e.g., CORE, CNE
70- `--tax_group`: e.g., Vertebrates, Plants
71- `--tax_id`: e.g., 9606 (Human)
72- `--tf_class`: Transcription factor class
73- `--version`: `latest` (default) or specific
74- `--page_size`: Results per page
75
76### 2. Get Matrix Details
77
78Retrieve details for a specific matrix ID (e.g., MA0001.1).
79
80```bash
81python scripts/jaspar_client.py matrix_read MA0001.1
82```
83
84### 3. Infer Profile from Sequence
85
86Infer matrix profiles given a protein sequence.
87
88```bash
89python scripts/jaspar_client.py infer "SEQUENCE_STRING"
90```
91
92### 4. Collections and Species
93
94List collections:
95```bash
96python scripts/jaspar_client.py collections_list
97```
98
99Get details for a species (by tax_id):
100```bash
101python scripts/jaspar_client.py species_read 9606
102```
103
104## References
105
106See `references/api_docs.md` for full parameter lists and endpoint details.