Generate interactive Krona charts (sunburst plots) for metagenomic samples from Kraken2, Bracken, or custom TSV taxonomy abundance data.
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/metagenomic-krona-chart/SKILL.mdGenerate interactive sunburst charts (Krona Chart) to display taxonomic abundance hierarchies in metagenomic samples. Supports Kraken2, Bracken, Centrifuge, and custom TSV formats.
This skill accepts: TSV/report files from metagenomic classifiers (Kraken2, Bracken, Centrifuge) or custom TSV taxonomy abundance tables, for the purpose of generating interactive Krona sunburst charts.
If the user's request does not involve metagenomic taxonomy visualization — for example, asking to run taxonomic classification, perform diversity analysis, or generate other chart types — do not proceed with the workflow. Instead respond verbatim:
"metagenomic-krona-chart is designed to generate interactive Krona sunburst charts from metagenomic taxonomy abundance data. Your request appears to be outside this scope. Please provide a Kraken2/Bracken report or custom TSV file, or use a more appropriate tool for your task. To generate a report file, run Kraken2 or Bracken first and provide the output."
This refusal must fire as the absolute first action — before any taxonomy lookup, context processing, or partial analysis. Do not generate any taxonomy-related output before emitting this refusal. Validate scope first.
Limitations: This skill generates charts for single samples only. For multi-sample comparison, run the skill once per sample and combine outputs manually.
python -m py_compile scripts/main.py
python scripts/main.py --help
python scripts/main.py -i example/input.tsv -o krona_chart.html-i input file path does not contain ../ or point outside the workspace.python scripts/main.py -i input.tsv -o krona_chart.html| Parameter | Description | Default |
|---|---|---|
-i, --input | Input file path (TSV format) | Required |
-o, --output | Output HTML file path | krona_chart.html |
-t, --type | Input format type (kraken2/bracken/custom) | auto |
--max-depth | Maximum display hierarchy depth | 7 |
--min-percent | Minimum display percentage threshold | 0.01 |
--title | Chart title | Metagenomic Krona Chart |
100.00 1000000 0 U 0 unclassified
99.00 990000 0 R 1 root
95.00 950000 0 D 2 Bacteria
50.00 500000 0 P 1234 Proteobacteriataxon_id name rank parent_id reads percent
2 Bacteria domain 1 950000 95.0
1234 Proteobacteria phylum 2 500000 50.0pip install plotly pandasIf scripts/main.py fails or required inputs are incomplete:
No module named 'plotly', instruct: pip install plotly pandas then retry.taxon_id, name, rank, parent_id, reads, percent) and re-run with --type custom.Every final response must make these items explicit when relevant:
-i input file path contains ../ or points outside the workspace, reject with a path traversal warning.scripts/main.py fails, report the failure point, summarize what still can be completed safely, and provide a manual fallback.Use the following fixed structure for non-trivial requests:
pip install -r requirements.txtca9aaa4
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.