vimalinx/bio-agent / .claude/skills/xfilter
xfilter
UnverifiedUse when filtering a UID stream against a local postings index with a query expression in the `x*` local-archive toolchain.
xfilter
Local-postings filter built on xcommon.sh, word-at-a-time, and rchive -query. It consumes UIDs from stdin or command-line sources, applies a query expression against a local postings index, and emits either raw filtered UIDs or an ENTREZ_DIRECT wrapper message.
Quick Start
- Command:
xfilter -query "<expression>" - Local executable:
/home/vimalinx/miniforge3/envs/bio/bin/xfilter - Critical environment:
EDIRECT_LOCAL_ARCHIVE
When To Use This Tool
- Filtering UIDs against a local postings index instead of using remote
efilter - Narrowing a local UID set with a query expression after
xfetch/xsearch-style workflows - Producing either raw UID output (
-raw) or anENTREZ_DIRECTXML wrapper for downstream local tools - Working inside a fully local PubMed/PMC archive setup
Common Patterns
# Filter a UID stream with a local query
printf '2539356\n' | xfilter -db pubmed -query 'dna repair'
# Emit raw UIDs instead of ENTREZ_DIRECT XML
printf '2539356\n' | xfilter -db pubmed -raw -query 'dna repair'
# Show usage
xfilter -h
Recommended Workflow
- Ensure the local postings environment is configured through
EDIRECT_LOCAL_ARCHIVE. - Supply UIDs by
-id,-input, stdin, or an upstreamENTREZ_DIRECTmessage. - Use
-querywith the local postings syntax you intend to test. - Add
-rawonly when a downstream stage expects plain UID lines instead of wrapper XML.
Guardrails
- This is a local-postings query tool, not a remote Entrez filter.
-h/--helpare safe and show usage examples;--versionis not supported and locally triggered the missing-path error plusERROR: Unrecognized option --version.- Source inspection shows
xfilteralways callsFindPostingsFolderbefore querying, so a valid local postings directory is mandatory. - In live testing without local postings configured,
printf '2539356\n' | xfilter -db pubmed -query 'dna repair'failed withUnable to get folder Postings for database pubmed. - Query handling prepends
[PIPE] ANDin the common case, and UID input is tokenized throughword-at-a-timebefore being sent torchive -query.
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| 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: 318k | Updated | Claude CodeCodex | Unverified | Install |
| 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: 196k | Updated | Claude CodeCodex | Verified | Install |
| 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: 196k | Updated | Claude CodeCodex | Verified | Install |
| 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: 196k | Updated | Claude CodeCodex | Verified | Install |