tooluniverse-lab-data-standardization
БесплатноЗапускает вложенные скриптыНе проверенConvert lab instrument output files (CSV, TSV, Excel, PDF — plate readers, spectrophotometers like NanoDrop, qPCR instruments, cell counters, chromatography…
от mims-harvard★ 1 813 звёзд на GitHubОб этом скилле
Lab Instrument Data Standardization
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.
Honesty contract (read first)
- Never fabricate a value. Every number in the output JSON/CSV must come directly from the source file. If a value can't be found or confidently parsed, it is omitted — never guessed.
- Never claim certified ASM output you didn't produce. Tier 1 (native
allotropyparsing) 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. - Traceability or it doesn't count. A "calculated" value with no link back to the raw measurement it came from is not emitted as calculated — the fallback parser only classifies a value as calculated when it can also identify at least one raw column in the same row to point at.
- Say so if a dependency is missing. If
allotropyisn't installed, print thepip install allotropyinstruction and proceed with the fallback tier — do not pretend Tier 1 ran.
When to use vs. not
Use this skill when the user wants to:
- Convert a plate reader / spectrophotometer / qPCR / cell counter / chromatography export (CSV, TSV, XLSX, or a text-extractable PDF table) into a standardized structured format
- Separate raw instrument readings from calculated/derived values with traceability, ahead of a LIMS or data-lake upload
- Get a flattened 2D CSV version of an ASM-style document for spreadsheet import
- Validate that a produced JSON document is structurally sound (has proper traceability, numeric values, no duplicate IDs)
Do NOT use this skill for (route elsewhere):
- General-purpose tabular cleaning/reshaping unrelated to lab instruments
->
tooluniverse-data-wrangling - FASTQ QC ->
tooluniverse-fastq-qc - VCF / variant files ->
tooluniverse-variant-analysis - Proteomics raw files (mzML, RAW) ->
tooluniverse-proteomics-analysis - Single-cell matrices (h5ad, 10X) ->
tooluniverse-single-cell
Two-tier conversion strategy
| 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.
Workflow
- Identify the input file (CSV/TSV/XLSX/PDF) and, for Excel, which sheet if not the first.
- Run the converter:
This auto-detects the tier (tries nativepython scripts/convert_instrument_data.py <input_file> --output-dir <out_dir>allotropyfirst if installed and--vendoris given/inferrable, otherwise uses the fallback parser automatically) and writes<stem>_asm.jsonand<stem>_flat.csvinto<out_dir>. - Read the console output. It states which tier ran and how many measurements/calculated values were found. Zero measurements is flagged as a warning, not silently reported as success.
- Validate the output:
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 - Re-flatten on demand (if you already have the JSON and just need the
CSV regenerated, e.g. after hand-editing the JSON):
(Only supported forpython scripts/flatten_to_csv.py <out_dir>/<stem>_asm.json -o <path>.csvtier: "fallback"documents — a nativeallotropydocument has its own internal ASM structure and needs allotropy's own flattening utilities, not this script.) - Report which tier ran, the measurement/calculated-value counts, any validator warnings/errors, and where the output files were written. Never report a value the tool didn't actually produce.
Options reference (convert_instrument_data.py)
| Flag | Meaning |
|---|---|
--output-dir |
Output directory (default: <input_dir>/<stem>_asm_results) |
Установить tooluniverse-lab-data-standardization в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл 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 file", "standardize this lab data", "prepare this for LIMS upload", "what format is this plate reader/NanoDrop/qPCR output in", "turn this CSV into ASM/Allotrope format", or "separate the raw and calculated values in this instrument export". NOT for general data wrangling of arbitrary tabular data unrelated to lab instruments (use tooluniverse-data-wrangling), NOT for genomics/proteomics-specific file formats like FASTQ/VCF/mzML (use tooluniverse-fastq-qc, tooluniverse-variant-analysis, or tooluniverse-proteomics-analysis). Honest: never fabricates a measurement value; if a vendor's native parser (allotropy) is unavailable it says so and falls back to a generic tabular parser that clearly flags itself as non-certified.
Как установить скилл tooluniverse-lab-data-standardization?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл tooluniverse-lab-data-standardization запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
docx
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
от AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
от Anthropicxlsx
Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
от Anthropicpptx
Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…
от Anthropic