视觉画布设计
canvas-design
基于设计原则创作静态视觉作品,用于海报与品牌图形。
tooluniverse-lab-data-standardization【文档与办公】Convert lab instrument output files (CSV, TSV, Excel, PDF — plate readers, spectrophotometers like NanoDrop, qPCR instruments, cell counters, chromatography systems) into a standardized Allotrope-Simple-Model-inspired JSON document plus a flattened 2D CSV, for LIMS/ELN upload or downstream analysis. Use when someone asks to "convert this instrument f…
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Convert raw instrument output into a standardized, structured format — distinguishing raw measurements from calculated/derived values with explicit traceability — for LIMS/ELN upload, data lakes, or downstream analysis.
allotropy parsing) produces genuine Allotrope Simple Model documents.
Tier 2 (fallback, this skill's own generic parser) produces a
structurally similar but NOT validated document, and is always tagged
"tier": "fallback" with an explanatory "note" — never presented as
equivalent to a certified conversion.allotropy isn't installed,
print the pip install allotropy instruction and proceed with the
fallback tier — do not pretend Tier 1 ran.Use this skill when the user wants to:
Do NOT use this skill for (route elsewhere):
tooluniverse-data-wranglingtooluniverse-fastq-qctooluniverse-variant-analysistooluniverse-proteomics-analysistooluniverse-single-cell| Tier | Trigger | Parser | Output tag |
|---|---|---|---|
| 1. Native | allotropy is installed AND the file matches a supported vendor | Real allotropy library — certified ASM output | tier: "native" |
| 2. Fallback | allotropy missing, or vendor unrecognized | This skill's own generic tabular parser (pandas/openpyxl/pdfplumber only — already-declared ToolUniverse deps) | tier: "fallback" + explanatory note |
allotropy is an OPTIONAL dependency — it is not part of ToolUniverse's
declared package dependencies. The scripts detect it at runtime via
try: import allotropy and never error out if it's missing; they just
report the install command and use Tier 2. Never add allotropy to
pyproject.toml — it stays opt-in per-user.
See references/supported_instruments.md for exactly what each tier
covers, and how to enumerate the installed allotropy Vendor list yourself.
python scripts/convert_instrument_data.py <input_file> --output-dir <out_dir>
This auto-detects the tier (tries native allotropy first if installed
and --vendor is given/inferrable, otherwise uses the fallback parser
automatically) and writes <stem>_asm.json and <stem>_flat.csv into
<out_dir>.python scripts/validate_output.py <out_dir>/<stem>_asm.json
# or, to escalate every warning to a failure:
python scripts/validate_output.py <out_dir>/<stem>_asm.json --strict
python scripts/flatten_to_csv.py <out_dir>/<stem>_asm.json -o <path>.csv
(Only supported for tier: "fallback" documents — a native allotropy
document has its own internal ASM structure and needs allotropy's own
flattening utilities, not this script.)convert_instrument_data.py)| Flag | Meaning |
|---|---|
--output-dir | Output directory (default: <input_dir>/<stem>_asm_results) |
--sheet | Excel sheet name/index (xlsx only) |
--vendor | Force a specific allotropy Vendor name for Tier 1 |
--force-fallback | Skip Tier 1 even if allotropy is installed (useful for testing/consistency) |
--format {json,csv,both} | Which output(s) to write (default: both) |
references/schema_overview.md — the JSON document shape and field rulesreferences/supported_instruments.md — what Tier 1 vs. Tier 2 actually parsereferences/field_classification_guide.md — raw vs. calculated heuristics, with a table of common calculated fields by instrument type