vimalinx/bio-agent / .claude/skills/bsmp2info
bsmp2info
VerifiedUse when converting BioSample `DocumentSummary` XML into a compact `BioSampleInfo` XML summary with accession, title, links, and harmonized attributes.
bsmp2info
Quick Start
- Command:
... | bsmp2info - Local executable:
/home/vimalinx/miniforge3/envs/bio/bin/bsmp2info - Output: formatted
BioSampleInfoXML
When To Use This Tool
- Extract a compact XML summary from BioSample docsum records.
- Preserve accession, title, link IDs, and harmonized BioSample attributes in a simpler structure.
- Normalize attribute tag names to lowercase before downstream parsing.
- Keep BioSample extraction inside an EDirect XML pipeline.
Common Patterns
# 1) Convert a local BioSample DocumentSummary XML snippet
cat biosample_docsum.xml | bsmp2info
# 2) End-to-end after obtaining BioSample docsum XML
esearch -db biosample -query 'SAMN38051082[ACCN]' |
efetch -format docsum |
bsmp2info
# 3) Pull selected fields from the simplified XML
... | bsmp2info | xtract -pattern BioSampleInfo -element Accession,organism,tissue
Recommended Workflow
- Start from BioSample
DocumentSummaryXML, whether from a local file or an EDirect fetch. - Pipe that XML into
bsmp2infoto collapse it to the key fields you actually need. - Inspect the emitted XML and confirm that expected harmonized attributes are present.
- Continue with
xtractor another XML-aware consumer instead of reparsing the original larger docsum structure.
Guardrails
- The wrapper expects BioSample
DocumentSummaryXML on stdin; it does not accept a bare accession or identifier list. - Only attributes carrying
harmonized_nameare emitted, and their tag names are lowercased. - Multiple
Links/Linkvalues are collapsed into one pipe-delimitedLinkelement such as123|456. - There is no real help or version interface.
- Live BioSample EDirect requests may hit NCBI rate limits, so local fixture-based validation can be more reliable than repeated network probing.
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 196k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 192k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 192k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 192k | Updated | Claude CodeCodex | Verified | Install |