Agent skill · Data & Analytics

bio-vcf-manipulation

Merge, concatenate, sort, intersect, and subset VCF files using bcftools. Use when combining variant files, comparing call sets, or restructuring VCF data.

BioTender-maxgithub.com/BioTender-maxGitHub ↗
claude-codeships scriptsNOASSERTION
Install
npx skills add BioTender-max/awesome-bio-agent-skills --skill vcf-manipulation --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 3
SKILL.md size: 13 KB
Bundled scripts: yes
Path: skills/bioskills/vcf-manipulation/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 135
Language: Python

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

## Version Compatibility Reference examples tested with: GATK 4.5+, bcftools 1.19+ Before using code patterns, verify installed versions match. If versions differ: - Python: `pip show <package>` then `help(module.function)` to check signatures - CLI: `<tool> --version` then `<tool> --help` to confirm flags If code throws ImportError, AttributeError, or TypeError, introspect the installed package and adapt the example to match the actual API rather than retrying. # VCF Manipulation Merge, concat, sort, and compare VCF files using bcftools. ## Operations Overview | Operation | Command | Use Case | |-----------|---------|----------| | Merge | `bcftools merge` | Combine samples from multiple VCFs | | Concat | `bcftools concat` | Combine regions from multiple VCFs | | Sort | `bcftools sort` | Sort unsorted VCF | | Intersect | `bcftools isec` | Compare/intersect call sets | | Subset | `bcftools view` | Extract samples or regions | ## Merge vs Concat Decision | Operation | Input structure | Result | Requires index | |-----------|----------------|--------|----------------| | `bcftools merge` | Different **samples** at (potentially) same positions | Multi-sample VCF | Yes | | `bcftools conc

What's inside
Steps it walks through
  1. Version Compatibility
  2. Operations Overview
  3. Merge vs Concat Decision
  4. bcftools merge
  5. Basic Merge
  6. Merge Multiple Files
  7. Merge from File List
  8. Handle Missing Genotypes
  9. Force Sample Names
  10. Multiallelic Handling During Merge
  11. Merge Specific Regions
  12. bcftools concat
  13. Concatenate Chromosomes
  14. Concatenate All Chromosomes
Ships with 2 files
  • examples/compare_vcfs.sh
  • usage-guide.md
Commands it runs
bcftools merge sample1.vcf.gz sample2.vcf.gz -Oz -o merged.vcf.gz
bcftools merge *.vcf.gz -Oz -o all_samples.vcf.gz
bcftools merge -l files.txt -Oz -o merged.vcf.gz
Output missing genotypes as ./. (default)
Output missing as reference (0/0)
bcftools merge --missing-to-ref sample1.vcf.gz sample2.vcf.gz -Oz -o merged.vcf.gz
bcftools merge --force-samples sample1.vcf.gz sample2.vcf.gz -Oz -o merged.vcf.gz
Keep SNPs and indels at same position as separate records
bcftools merge --merge snps sample1.vcf.gz sample2.vcf.gz -Oz -o merged.vcf.gz
No merging -- every record stays separate
More from awesome-bio-agent-skills
All skills →
About this skill
What does the bio-vcf-manipulation skill do?

Merge, concatenate, sort, intersect, and subset VCF files using bcftools. Use when combining variant files, comparing call sets, or restructuring VCF data.

How do I install it?

Run `npx skills add BioTender-max/awesome-bio-agent-skills --skill vcf-manipulation --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From BioTender-max/awesome-bio-agent-skills, a repository with 135 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going