{"data":{"slug":"github-aipoch-medical-research-skills-scientific-skills-data-analysis-motif-logo-generator-8bbd199aed2f","title":"Generate Publication-Quality Sequence Logos for DNA\/Protein Motifs","summary":"Create high-quality sequence logos for DNA or protein motifs using the Motif Logo Generator tool. The deliverable is a publication-ready logo, typically in image format, generated from input sequence data such as FASTA files or raw sequences.","url":"https:\/\/skillshunter.net\/skills\/github-aipoch-medical-research-skills-scientific-skills-data-analysis-motif-logo-generator-8bbd199aed2f","json_url":"https:\/\/skillshunter.net\/api\/public\/v1\/skills\/github-aipoch-medical-research-skills-scientific-skills-data-analysis-motif-logo-generator-8bbd199aed2f","markdown_url":"https:\/\/skillshunter.net\/skills\/github-aipoch-medical-research-skills-scientific-skills-data-analysis-motif-logo-generator-8bbd199aed2f.md","download_url":"https:\/\/skillshunter.net\/skills\/github-aipoch-medical-research-skills-scientific-skills-data-analysis-motif-logo-generator-8bbd199aed2f\/download","category":{"slug":"data-research","name":"Data & Research"},"editor_note":"Ensure Python 3.10+ is installed and the required dependencies (`logomaker`, `pandas`, `numpy`, `matplotlib`) are installed via `pip install -r requirements.txt` before running the script. Confirm the input path, output path, and any required configuration values before execution.","instructions":"---\nname: motif-logo-generator\ndescription: Generate publication-quality sequence logos for DNA or protein motifs.\nlicense: MIT\nauthor: AIPOCH\n---\n> **Source**: [https:\/\/github.com\/aipoch\/medical-research-skills](https:\/\/github.com\/aipoch\/medical-research-skills)\n\n# Motif Logo Generator\n\nGenerate sequence logos for DNA or protein motifs to visualize conserved positions.\n\n## When to Use\n\n- Use this skill when the task is to Generate publication-quality sequence logos for DNA or protein motifs.\n- Use this skill for data analysis tasks that require explicit assumptions, bounded scope, and a reproducible output format.\n- Use this skill when you need a documented fallback path for missing inputs, execution errors, or partial evidence.\n\n## Key Features\n\n- Scope-focused workflow aligned to: Generate publication-quality sequence logos for DNA or protein motifs.\n- Packaged executable path(s): `scripts\/main.py`.\n- Structured execution path designed to keep outputs consistent and reviewable.\n\n## Dependencies\n\nSee `## Prerequisites` above for related details.\n\n- `Python`: `3.10+`. Repository baseline for current packaged skills.\n- `numpy`: `unspecified`. Declared in `requirements.txt`.\n\n## Example Usage\n\nSee `## Usage` above for related details.\n\n```bash\ncd \"20260318\/scientific-skills\/Data Analytics\/motif-logo-generator\"\npython -m py_compile scripts\/main.py\npython scripts\/main.py --help\n```\n\nExample run plan:\n1. Confirm the user input, output path, and any required config values.\n2. Edit the in-file `CONFIG` block or documented parameters if the script uses fixed settings.\n3. Run `python scripts\/main.py` with the validated inputs.\n4. Review the generated output and return the final artifact with any assumptions called out.\n\n## Implementation Details\n\nSee `## Workflow` above for related details.\n\n- Execution model: validate the request, choose the packaged workflow, and produce a bounded deliverable.\n- Input controls: confirm the source files, scope limits, output format, and acceptance criteria before running any script.\n- Primary implementation surface: `scripts\/main.py`.\n- Parameters to clarify first: input path, output path, scope filters, thresholds, and any domain-specific constraints.\n- Output discipline: keep results reproducible, identify assumptions explicitly, and avoid undocumented side effects.\n\n## Quick Check\n\nUse this command to verify that the packaged script entry point can be parsed before deeper execution.\n\n```bash\npython -m py_compile scripts\/main.py\n```\n\n## Audit-Ready Commands\n\nUse these concrete commands for validation. They are intentionally self-contained and avoid placeholder paths.\n\n```bash\npython -m py_compile scripts\/main.py\npython scripts\/main.py --help\n```\n\n## Workflow\n\n1. Confirm the user objective, required inputs, and non-negotiable constraints before doing detailed work.\n2. Validate that the request matches the documented scope and stop early if the task would require unsupported assumptions.\n3. Use the packaged script path or the documented reasoning path with only the inputs that are actually available.\n4. Return a structured result that separates assumptions, deliverables, risks, and unresolved items.\n5. If execution fails or inputs are incomplete, switch to the fallback path and state exactly what blocked full completion.\n\n## Installation\n\n```text\ncd \/Users\/z04030865\/.openclaw\/workspace\/skills\/motif-logo-generator\npip install -r requirements.txt\n```\n\nDependencies:\n- `logomaker` - Generate publication-quality sequence logos\n- `pandas` - Data manipulation for sequence alignment\n- `numpy` - Numerical operations\n- `matplotlib` - Visualization backend\n\n## Quick Start\n\n```text\n\n# Generate logo from FASTA file\npython scripts\/main.py --input sequences.fasta --output logo.png --type dna\n\n# Generate logo from raw sequences\npython scripts\/main.py --sequences \"ACGT\\nACCT\\nAGGT\" --output logo.png --type dna\n\n# Protein sequences with custom styling\npython scripts\/main.py --input proteins.fasta --output logo.pdf --type protein --title \"Conserved Domain\"\n```\n\n## Usage\n\n### Python API\n\n```python\nfrom motif_logo_generator import generate_logo\n\n# From file\nlogo = generate_logo(\n    input_file=\"sequences.fasta\",\n    seq_type=\"dna\",\n    output_path=\"logo.png\",\n    title=\"My Motif\"\n)\n\n# From sequences list\nsequences = [\n    \"ACGTAGCT\",\n    \"ACGTAGCT\",\n    \"ACCTAGCT\",\n    \"ACGTAGTT\"\n]\nlogo = generate_logo(\n    sequences=sequences,\n    seq_type=\"dna\",\n    output_path=\"logo.png\"\n)\n```\n\n### Command Line\n\n```text\npython scripts\/main.py [OPTIONS]\n\nRequired:\n  --input PATH       Input FASTA file (or use --sequences)\n  --sequences TEXT   Raw sequences separated by newline (or use --input)\n  --output PATH      Output file path (.png, .pdf, .svg)\n\nOptional:\n  --type {dna,protein}   Sequence type (default: dna)\n  --title TEXT           Logo title\n  --width INT            Figure width in inches (default: 10)\n  --height INT           Figure height in inches (default: 3)\n  --colorscheme TEXT     Color scheme (default: classic)\n                         DNA: classic, base_pairing\n                         Protein: chemistry, hydrophobicity, classic\n```\n\n## Output\n\nGenerates a sequence logo showing:\n- Letter height = information content (conservation)\n- Letter stack = frequency at each position\n- Y-axis: bits (information content) for DNA, or relative frequency for protein\n\n## Example\n\nInput (FASTA):\n```\n>seq1\nACGT\n>seq2\nACGT\n>seq3\nACCT\n>seq4\nAGGT\n```\n\nOutput: Logo with position 2 showing C\/G variability and other positions conserved.\n\n## Risk Assessment\n\n| Risk Indicator | Assessment | Level |\n|----------------|------------|-------|\n| Code Execution | Python\/R scripts executed locally | Medium |\n| Network Access | No external API calls | Low |\n| File System Access | Read input files, write output files | Medium |\n| Instruction Tampering | Standard prompt guidelines | Low |\n| Data Exposure | Output files saved to workspace | Low |\n\n## Security Checklist\n\n- [ ] No hardcoded credentials or API keys\n- [ ] No unauthorized file system access (..\/)\n- [ ] Output does not expose sensitive information\n- [ ] Prompt injection protections in place\n- [ ] Input file paths validated (no ..\/ traversal)\n- [ ] Output directory restricted to workspace\n- [ ] Script execution in sandboxed environment\n- [ ] Error messages sanitized (no stack traces exposed)\n- [ ] Dependencies audited\n\n## Prerequisites\n\n```text\n\n# Python dependencies\npip install -r requirements.txt\n```\n\n## Evaluation Criteria\n\n### Success Metrics\n- [ ] Successfully executes main functionality\n- [ ] Output meets quality standards\n- [ ] Handles edge cases gracefully\n- [ ] Performance is acceptable\n\n### Test Cases\n1. **Basic Functionality**: Standard input \u2192 Expected output\n2. **Edge Case**: Invalid input \u2192 Graceful error handling\n3. **Performance**: Large dataset \u2192 Acceptable processing time\n\n## Lifecycle Status\n\n- **Current Stage**: Draft\n- **Next Review Date**: 2026-03-06\n- **Known Issues**: None\n- **Planned Improvements**: \n  - Performance optimization\n  - Additional feature support\n\n## Output Requirements\n\nEvery final response should make these items explicit when they are relevant:\n\n- Objective or requested deliverable\n- Inputs used and assumptions introduced\n- Workflow or decision path\n- Core result, recommendation, or artifact\n- Constraints, risks, caveats, or validation needs\n- Unresolved items and next-step checks\n\n## Error Handling\n\n- If required inputs are missing, state exactly which fields are missing and request only the minimum additional information.\n- If the task goes outside the documented scope, stop instead of guessing or silently widening the assignment.\n- If `scripts\/main.py` fails, report the failure point, summarize what still can be completed safely, and provide a manual fallback.\n- Do not fabricate files, citations, data, search results, or execution outcomes.\n\n## Input Validation\n\nThis skill accepts requests that match the documented purpose of `motif-logo-generator` and include enough context to complete the workflow safely.\n\nDo not continue the workflow when the request is out of scope, missing a critical input, or would require unsupported assumptions. Instead respond:\n\n> `motif-logo-generator` only handles its documented workflow. Please provide the missing required inputs or switch to a more suitable skill.\n\n## Response Template\n\nUse the following fixed structure for non-trivial requests:\n\n1. Objective\n2. Inputs Received\n3. Assumptions\n4. Workflow\n5. Deliverable\n6. Risks and Limits\n7. Next Checks\n\nIf the request is simple, you may compress the structure, but still keep assumptions and limits explicit when they affect correctness.\n","use_cases":["Visualize conserved positions in DNA or protein sequences for research publications.","Create logos from FASTA files or raw sequence data for analysis.","Generate logos with custom styling for protein motifs."],"limitations":[],"compatibility":[],"setup_tip":"```text\ncd \/Users\/z04030865\/.openclaw\/workspace\/skills\/motif-logo-generator\npip install -r requirements.txt\n```\n\nDependencies:\n- `logomaker` - Generate publication-quality sequence logos\n- `pandas` - Data manipulation for sequence alignment\n- `numpy` - Numerical operations\n- `matplotlib` - Visualization backend","sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/aipoch\/medical-research-skills\/blob\/686e09dfdb45d9fa1a08664f06bb93769b3c9d91\/scientific-skills\/Data%20Analysis\/motif-logo-generator\/SKILL.md","source_commit":"686e09dfdb45d9fa1a08664f06bb93769b3c9d91","license":"MIT","version":null,"listing_approved_at":"2026-11-24","created_at":"2026-11-23T12:12:08.000000Z","updated_at":"2026-11-24T12:17:13.000000Z","seo_title":"Generate Sequence Logos for DNA\/Protein Motifs","seo_description":"Generate publication-quality sequence logos for DNA or protein motifs with the Motif Logo Generator. Supports FASTA files and raw sequences.","seo_keywords":["sequence logo generator","DNA motif visualization","protein logo creation","FASTA to logo converter","publication-quality logos"]}}