pycirclize
Use pyCirclize 1.10.1 for circular visualization, Circos plots, chord and radar charts, genomic feature plots, phylogenetic trees, parser-driven layouts, and deterministic Matplotlib export.
- License 许可
- MIT
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- pycirclize
- license
- MIT
- metadata
- { "disco-role": "operating" }
- description
- Use pyCirclize 1.10.1 for circular visualization, Circos plots, chord and radar charts, genomic feature plots, phylogenetic trees, parser-driven layouts, and deterministic Matplotlib export.
- disable-model-invocation
- true
02 资源文件 4
- 参考文档references/repo-provenance.md1.5 KB
- 参考文档references/repo-routing-metadata.json415 B
- 参考文档references/troubleshooting.md2.5 KB
- 脚本scripts/check_environment.py1.7 KB
03 SKILL.md 正文
pyCirclize
Use this skill when a task asks to create or debug circular figures in Python
with pyCirclize: Circos sectors, radial tracks, links, chord/radar charts,
genomics/cytoband plots, phylogenetic trees, or figure export. It targets
pyCirclize 1.10.1 on Python >=3.10 with biopython, matplotlib, numpy, and
pandas.
Install and smoke-check
python -m pip install pycirclize
python -c "import pycirclize; print(pycirclize.__version__)"
For interactive Jupyter tooltips only, install pycirclize[tooltip] (or
ipympl) and use a live widget kernel. Static PNG/SVG/PDF rendering does not
need that extra. For headless work select Matplotlib's Agg backend before
importing pyplot.
For a safe package/import/export check, read and run
scripts/check_environment.py. It does not
download data or overwrite an existing output.
Route by task
- General Circos layout, sectors, global links, composition, legends, and
export: read
circular-composition. - Sector/track drawing, annotations, ticks, bars, heatmaps, images, and
numeric data: read
plot-primitives. - Matrix/table/from-to/BED preparation, chord diagrams, radar charts, and
stacked-bar helpers: read
data-parsers. - GenBank, GFF, BED/cytoband, genomic features, Newick trees, and TreeViz
styling: read
genomics-and-trees.
Read the shared troubleshooting guide when an import, optional dependency, input schema, coordinate, or output problem is not clearly owned by one route. Read repository provenance before deciding whether this graph is stale for a changed checkout.
Cross-route operating rules
- Normalize the input first: sector sizes/ranges, table labels and delimiter, biological coordinate convention and sequence IDs, or tree format.
- Keep the object hierarchy explicit:
Circosowns sectors;Sectorowns tracks;Trackowns most data primitives. High-level factories create the appropriate hierarchy for matrix/radar/tree inputs. - Render only after all patches and plot callbacks are registered. Use
Circos.savefig(path)for a self-contained static export. Usefig = circos.plotfig()and thenfig.savefig(...)when a caller must add legends, subplots, or other Matplotlib objects after rendering. - Validate every x coordinate against its sector range and every feature/tree identifier against the parsed mapping. Do not silently download example datasets: network-backed helpers require an explicit data/cache decision.
- Verify output existence and non-zero size in automated workflows. Treat interactive tooltip support as optional and separate from static rendering.
Scope boundary
This is a user-facing package skill, not a maintainer guide. It does not require the original checkout, notebooks, tests, caches, or generated images at runtime. The bundled references and smoke helpers contain the reusable facts needed for future tasks.
04 同仓库更多 Skills
passnet-triton-opt
Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.
passnet-solve
END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.
passnet-skill
PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.
passnet-pattern-fusion
Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.
passnet-orchestrate
Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.
passnet-feedback
Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).