Skip to content

vimalinx/bio-agent / .claude/skills/bsmp2info

bsmp2info

Verified

Use 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 BioSampleInfo XML

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

  1. Start from BioSample DocumentSummary XML, whether from a local file or an EDirect fetch.
  2. Pipe that XML into bsmp2info to collapse it to the key fields you actually need.
  3. Inspect the emitted XML and confirm that expected harmonized attributes are present.
  4. Continue with xtract or another XML-aware consumer instead of reparsing the original larger docsum structure.

Guardrails

  • The wrapper expects BioSample DocumentSummary XML on stdin; it does not accept a bare accession or identifier list.
  • Only attributes carrying harmonized_name are emitted, and their tag names are lowercased.
  • Multiple Links/Link values are collapsed into one pipe-delimited Link element such as 123|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.
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: 196kUpdated Claude CodeCodexVerifiedInstall
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: 192kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report.Stars: 192kUpdated Claude CodeCodexVerifiedInstall
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: 192kUpdated Claude CodeCodexVerifiedInstall