instrument-data-to-allotrope
Convert laboratory instrument output files (PDF, CSV, Excel, TXT) to Allotrope Simple Model (ASM) JSON format or flattened 2D CSV.
Skill by necboy-eng
Chalk Labs
Need help deploying instrument-data-to-allotrope?
Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/necboy-eng-instrument-data-to-allotrope
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: documents, spreadsheets, data, research
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
- Runs as
- Python package
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/instrument-data-to-allotrope
What's inside
- Skill name
instrument-data-to-allotrope- Description
- Convert laboratory instrument output files (PDF, CSV, Excel, TXT) to Allotrope Simple Model (ASM) JSON format or flattened 2D CSV. Use this skill when scientists need to standardize instrument data for LIMS systems, data lakes, or downstream analysis. Supports auto-detection of instrument types. Outputs include full ASM JSON, flattened CSV for easy import, and exportable Python code for data engineers. Common triggers include converting instrument files, standardizing lab data, preparing data for upload to LIMS/ELN systems, or generating parser code for production pipelines.
- License
- MIT
- Instructions
- 277 lines in SKILL.md · view on GitHub
Before installing
- Ships executable scripts
Files (11)
- LICENSE.txt
- SKILL.md
- asm_schema_overview.md · references/
- field_classification_guide.md · references/
- flattening_guide.md · references/
- supported_instruments.md · references/
- requirements.txt
- convert_to_asm.py · scripts/
- export_parser.py · scripts/
- flatten_asm.py · scripts/
- validate_asm.py · scripts/
SKILL.md (first lines)
# Instrument Data to Allotrope Converter
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 standards
>
> This pattern can be adapted for any data transformation workflow where you need to convert between formats or validate against organizational standards.
## Workflow Overview
1. **Detect instrument type** from file contents (auto-detect or user-specified)
2. **Parse file** using allotropy library (native) or flexible fallback parser
3. **Generate outputs**:
- ASM JSON (full semantic structure)
- Flattened CSV (2D tabular format)
- Python parser code (for data engineer handoff)
4. **Deliver** files with summary and usage instructions
> **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.md` for guidance, but when ambiguity remains, confirm with the user rather than guessing.
## Quick Start
```python
# 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)
```
## Output Format Selection
**ASM JSON (default)** - Full semantic structure with ontology URIs
- Best for: LIMS systems expecting ASM, data lakes, long-term archival
- Validates against Allotrope schemas
**Flattened CSV** - 2D tabular representation
- Best for: Quick analysis, Excel users, systems without JSON support
- Each measurement becomes one row with metadata repeated
**Both** - Generate both formats for maximum flexibility
## Calculated Data Handling
**IMPORTANT:** Separate raw measurements from calculated/derived values.
- **Raw data** → `measurement-document` (direct instrument readings)
- **Calculated data** → `calculated-data-aggregate-document` (derived values)
Calculated values MUST include traceability via `data-source-aggregate-document`:
```json
"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.
## Validation
Always validate ASM output before delivering to the user:
```bash
python scripts/validate_asm.py output.json
python scripts/validate_asm.py output.json --reference known_good.json # Compare to reference
python scripts/validate_asm.py output.json --strict # Treat warnings as errors
```
**Validation Rules:**
- Based on Allotrope ASM specification (December 2024)
- Last updated: 2026-01-07
- Source: https://gitlab.com/allotrope-public/asm
**Soft Validation Approach:**
Unknown techniques, units, or sample roles generate **warnings** (not errors) to allow for forward compatibility. If Allotrope adds new values after December 2024, the validator won't block them—it will flag them for manual verification. Use `--strict` mode to treat warnings as errors if you need stricter validation.
**What it checks:**
- Correct technique selection (e.g., multi-analyte profiling vs plate reader)
- Field naming conventions (space-separated, not hyphenated)
- Calculated data has traceability (`data-source-aggregate-document`)
- Unique identifiers exist for measurements and calculated values
- Required metadata present
- Valid units and sample roles (with soft validation for unknown values)
## Supported Instruments
See `references/supported_instruments.md` for complete list. Key instruments:From necboy-eng/MantisBot, MIT.
More from necboy-eng/MantisBot
- 0.437score
scvi-tools
necboy-eng
Deep learning for single-cell analysis using scvi-tools.
SkillDFreshness: D★ 1Claude Code +9 - 0.437score
single-cell-rna-qc
necboy-eng
Performs quality control on single-cell RNA-seq data (.h5ad or .h5 files) using scverse best practices with MAD-based filtering and comprehensive…
SkillDFreshness: D★ 1Claude Code +9 - 0.437score
cowork-plugin-customizer
necboy-eng
Customize a Claude Code plugin for a specific organization's tools and workflows.
SkillDFreshness: D★ 1Claude Code +9 - 0.437score
create-cowork-plugin
necboy-eng
Guide users through creating a new plugin from scratch in a cowork session.
SkillDFreshness: D★ 1Claude Code +9 - 0.437score
nextflow-development
necboy-eng
Run nf-core bioinformatics pipelines (rnaseq, sarek, atacseq) on sequencing data.
SkillDFreshness: D★ 1Claude Code +9 - 0.432score
escalation
necboy-eng
Structure and package support escalations for engineering, product, or leadership with full context, reproduction steps, and business impact.
SkillDFreshness: D★ 1Claude Code +9 - 0.432score
knowledge-management
necboy-eng
Write and maintain knowledge base articles from resolved support issues.
SkillDFreshness: D★ 1Claude Code +9 - 0.432score
response-drafting
necboy-eng
Draft professional, empathetic customer-facing responses adapted to the situation, urgency, and channel.
SkillDFreshness: D★ 1Claude Code +9 - 0.432score
ticket-triage
necboy-eng
Triage incoming support tickets by categorizing issues, assigning priority (P1-P4), and recommending routing.
SkillDFreshness: D★ 1Claude Code +9 - 0.432score
customer-research
necboy-eng
Research customer questions by searching across documentation, knowledge bases, and connected sources, then synthesize a confidence-scored answer.
SkillDFreshness: D★ 1Claude Code +9 - 0.429score
source-management
necboy-eng
Manages connected MCP sources for enterprise search.
SkillDFreshness: D★ 1Claude Code +9
Signals
- Stars
- 1
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Feb 23, 2026 (8 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/necboy-eng/MantisBot
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from necboy-eng
- 0.437score
scvi-tools
necboy-eng
Deep learning for single-cell analysis using scvi-tools.
SkillDFreshness: D★ 1Claude Code +9 - 0.437score
single-cell-rna-qc
necboy-eng
Performs quality control on single-cell RNA-seq data (.h5ad or .h5 files) using scverse best practices with MAD-based filtering and comprehensive…
SkillDFreshness: D★ 1Claude Code +9 - 0.437score
cowork-plugin-customizer
necboy-eng
Customize a Claude Code plugin for a specific organization's tools and workflows.
SkillDFreshness: D★ 1Claude Code +9 - 0.437score
create-cowork-plugin
necboy-eng
Guide users through creating a new plugin from scratch in a cowork session.
SkillDFreshness: D★ 1Claude Code +9 - 0.437score
nextflow-development
necboy-eng
Run nf-core bioinformatics pipelines (rnaseq, sarek, atacseq) on sequencing data.
SkillDFreshness: D★ 1Claude Code +9 - 0.432score
escalation
necboy-eng
Structure and package support escalations for engineering, product, or leadership with full context, reproduction steps, and business impact.
SkillDFreshness: D★ 1Claude Code +9
Done for you
Rather not set it up yourself?
Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.
See how we build AI agents →Read the case studies
Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.
- launches shipped
- 50+
- launches shipped
- media placements
- 500+
- media placements
- founders on every account
- 2
- founders on every account
Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block
Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.
Get instrument-data-to-allotrope running in your business
Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.
Cite this page
instrument-data-to-allotrope skill. Agent Mart. https://agentmart.dev/skills/necboy-eng-instrument-data-to-allotrope (last updated 2026-10-24)