Convert lab instrument files into standardized ASM JSON or flat CSV outputs.
Copy the install command and let the AI configure it · recommended for beginners
Please install the "instrument-data-to-allotrope" skill from askskill: 1. Download https://raw.githubusercontent.com/anthropics/knowledge-work-plugins/main/bio-research/skills/instrument-data-to-allotrope/SKILL.md 2. Save it as ~/.claude/skills/instrument-data-to-allotrope/SKILL.md 3. Reload skills and tell me it's ready
Please auto-detect the instrument type from these exported PDF, CSV, and Excel files and convert them into Allotrope Simple Model (ASM) JSON. Also generate a flattened 2D CSV preserving sample IDs, results, units, timestamps, and instrument metadata.
Produces full ASM JSON and a flat CSV suitable for databases or spreadsheet imports.
I need to standardize a batch of laboratory instrument TXT and CSV files before uploading them to a LIMS. Please convert them into consistent ASM JSON and also generate a clean flat CSV with normalized column names for bulk import.
Produces standardized data files ready for LIMS/ELN integration with consistent field structure.
Using this sample instrument output, besides converting it to ASM JSON, also export reusable Python parser code so the data engineering team can integrate it into a production data lake pipeline, and explain the key field mappings.
Produces ASM JSON, field-mapping documentation, and reusable Python parser code for production pipelines.
Convert instrument files into standardized Allotrope Simple Model (ASM) format for LIMS upload, data lakes, or handoff to data engineering teams.
Note: This is an Example Skill
This skill demonstrates how skills can support your data engineering tasks—automating schema transformations, parsing instrument outputs, and generating production-ready code.
To customize for your organization:
- Modify the
references/files to include your company's specific schemas or ontology mappings- Use an MCP server to connect to systems that define your schemas (e.g., your LIMS, data catalog, or schema registry)
- Extend the
scripts/to handle proprietary instrument formats or internal data standardsThis pattern can be adapted for any data transformation workflow where you need to convert between formats or validate against organizational standards.
When Uncertain: If you're unsure how to map a field to ASM (e.g., is this raw data or calculated? device setting or environmental condition?), ask the user for clarification. Refer to
references/field_classification_guide.mdfor guidance, but when ambiguity remains, confirm with the user rather than guessing.
# Install requirements first
pip install allotropy pandas openpyxl pdfplumber --break-system-packages
# Core conversion
from allotropy.parser_factory import Vendor
from allotropy.to_allotrope import allotrope_from_file
# Convert with allotropy
asm = allotrope_from_file("instrument_data.csv", Vendor.BECKMAN_VI_CELL_BLU)
ASM JSON (default) - Full semantic structure with ontology URIs
Flattened CSV - 2D tabular representation
Both - Generate both formats for maximum flexibility
IMPORTANT: Separate raw measurements from calculated/derived values.
measurement-document (direct instrument readings)calculated-data-aggregate-document (derived values)Calculated values MUST include traceability via data-source-aggregate-document:
"calculated-data-aggregate-document": {
"calculated-data-document": [{
"calculated-data-identifier": "SAMPLE_B1_DIN_001",
"calculated-data-name": "DNA integrity number",
"calculated-result": {"value": 9.5, "unit": "(unitless)"},
"data-source-aggregate-document": {
"data-source-document": [{
"data-source-identifier": "SAMPLE_B1_MEASUREMENT",
"data-source-feature": "electrophoresis trace"
}]
}
}]
}
Common calculated fields by instrument type:
| Instrument | Calculated Fields |
|---|---|
| Cell counter | Viability %, cell density dilution-adjusted values |
| Spectrophotometer | Concentration (from absorbance), 260/280 ratio |
| Plate reader | Concentrations from standard curve, %CV |
| Electrophoresis | DIN/RIN, region concentrations, average sizes |
| qPCR | Relative quantities, fold change |
See references/field_classification_guide.md for detailed guidance on raw vs. calculated classification.
Always validate ASM output before delivering to the user:
python scripts/validate_asm.py output.json
python scripts/validate_asm.py output.json --reference known_good.json # Compare to reference
…
Embed Zoom Virtual Agent chat on web with secure controls and context updates.
Quickly add Zoom’s prebuilt React video UI to web workflows.
Create stakeholder updates tailored to audience, cadence, and communication goals.
Review an analysis for methodology, accuracy, bias, and evidence support.
Generate people analytics reports on headcount, attrition, diversity, and org health.
Identify, categorize, and prioritize technical debt for smarter refactoring decisions.
Convert documents across Markdown, HTML, DOCX, PDF, and plain text formats.
Process documents with OCR, conversion, extraction, redaction, signing, and form filling.
Read and analyze PDF documents for natural language Q&A and extraction.
Convert common files into compact AI-ready Markdown for efficient LLM processing.
Convert handwritten PDF notes into clean Markdown with processing status checks.
Validate, clean, transform, and merge structured data and text datasets.