Generate publication-quality sequence logos for DNA or protein motifs from FASTA files or raw sequence lists.
78
73%
Does it follow best practices?
Impact
Pending
No eval scenarios have been run
Passed
No known issues
Optimize this skill with Tessl
npx tessl skill review --optimize ./scientific-skills/Data analysis/motif-logo-generator/SKILL.mdGenerate sequence logos for DNA or protein motifs to visualize conserved positions and information content.
This skill accepts: aligned DNA or protein sequences in FASTA format or as a newline-separated string, for sequence logo generation.
If the request does not involve generating a sequence logo from biological sequences — for example, asking to perform sequence alignment, run BLAST, or analyze non-sequence data — do not proceed. Instead respond:
"motif-logo-generator is designed to generate sequence logos for DNA or protein motifs. Your request appears to be outside this scope. Please provide aligned sequences in FASTA format or as a raw list, or use a more appropriate tool for your task. For sequence alignment, consider MUSCLE, MAFFT, or Clustal Omega."
Do not generate any output, alignment, or sequence analysis before emitting this refusal. Validate scope first — this is the absolute first action before any other processing.
python -m py_compile scripts/main.py
python scripts/main.py --help
python -c "import numpy, matplotlib, logomaker, pandas; print('deps OK')"# Generate logo from FASTA file
python scripts/main.py --input sequences.fasta --output logo.png --type dna
# Generate logo from raw sequences
python scripts/main.py --sequences "ACGT\nACCT\nAGGT" --output logo.png --type dna
# Protein sequences with custom styling
python scripts/main.py --input proteins.fasta --output logo.pdf --type protein --title "Conserved Domain"| Parameter | Type | Required | Description |
|---|---|---|---|
--input | path | No* | Input FASTA file (or use --sequences) |
--sequences | str | No* | Raw sequences separated by newline (or use --input) |
--output | path | Yes | Output file path (.png, .pdf, .svg) |
--type | enum | No | dna or protein (default: dna) |
--title | str | No | Logo title |
--width | int | No | Figure width in inches (default: 10) |
--height | int | No | Figure height in inches (default: 3) |
--colorscheme | str | No | Color scheme: classic, base_pairing (DNA); chemistry, hydrophobicity (protein) |
*One of --input or --sequences is required.
Generates a sequence logo showing:
Input (FASTA):
>seq1
ACGT
>seq2
ACGT
>seq3
ACCT
>seq4
AGGTOutput: Logo with position 2 showing C/G variability; other positions conserved.
--input nor --sequences is provided, state this and request one of them.scripts/main.py fails, report the failure point and summarize what can still be completed.../ with a path traversal warning.pip install numpy matplotlib logomaker pandas.When execution fails or inputs are incomplete, respond with this structure:
FALLBACK REPORT
───────────────────────────────────────
Objective : [restate the goal]
Blocked by : [exact missing input or error]
Partial result : [what can be completed without the missing input]
Next step : [minimum action needed to unblock]
───────────────────────────────────────If the request is simple, compress the structure but keep assumptions and limits explicit when they affect correctness.
pip install -r requirements.txtDependencies: logomaker, pandas, numpy, matplotlib
ca9aaa4
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.