Skip to content

vimalinx/bio-agent / .claude/skills/intersect-uid-lists

intersect-uid-lists

Unverified

Use when keeping only the Entrez or NCBI UIDs present in both of two UID files.

intersect-uid-lists

Quick Start

  • Command: intersect-uid-lists FILE1 FILE2
  • Local executable: /home/vimalinx/miniforge3/envs/bio/bin/intersect-uid-lists
  • Reference: references/help.md

When To Use This Tool

  • Keep only IDs shared by two independent Entrez result sets.
  • Build overlap cohorts, for example records matching both a disease query and a species query.
  • Confirm which previously processed IDs are still present in a refreshed search.
  • Use this instead of exclude-uid-lists or difference-uid-lists when you want the shared core set.

Common Patterns

# 1) Keep only UIDs that appear in both searches
intersect-uid-lists disease.ids species.ids > overlap.ids
# 2) Count the shared UID set between two snapshots
intersect-uid-lists old.ids new.ids | wc -l
# 3) Preview the first overlapping IDs before refetching
intersect-uid-lists query_a.ids query_b.ids | sed -n '1,20p'

Recommended Workflow

  1. Save the two UID sets you want to compare as one-UID-per-line files.
  2. Run intersect-uid-lists to compute the shared set.
  3. Inspect or count the overlap before feeding it into expensive downstream steps.
  4. Use the resulting list with efetch, xtract, or other local archive utilities.

Guardrails

  • The real implementation is comm -12 <(sort "$1") <(sort "$2") | sort -n, so it returns only the shared IDs.
  • The wrapper sorts inputs internally, so output order reflects numeric sorting rather than input order.
  • This command expects exactly two files and has no real built-in help/version interface.
  • Passing --help or --version can still produce sort / comm noise instead of clean documentation output.
brainstormingobra/superpowersYou MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation).Stars: 318kUpdated Claude CodeCodexUnverifiedInstall
brand-guidelinesanthropics/skillsApplies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply.Stars: 196kUpdated Claude CodeCodexVerifiedInstall
frontend-designanthropics/skillsGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults.Stars: 196kUpdated Claude CodeCodexVerifiedInstall
mcp-builderanthropics/skillsGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).Stars: 196kUpdated Claude CodeCodexVerifiedInstall