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.

FreedomIntelligencegithub.com/FreedomIntelligenceGitHub ↗
claude-codeships scripts
Install
npx skills add FreedomIntelligence/OpenClaw-Medical-Skills --skill bio-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: 10 KB
Bundled scripts: yes
Path: skills/bio-vcf-manipulation/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 2,909
Language: Python
Read our review of the source →

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 | ## bcftools merge **Goal:** Combine VCF files from different samples into a single multi-sample VCF. **Approach:** Use bcftools merge to join files with different sample columns at shared genomic positions. **"Merge my per-sample VCFs into one file"** → Combine

What's inside
Steps it walks through
  1. Version Compatibility
  2. Operations Overview
  3. bcftools merge
  4. Basic Merge
  5. Merge Multiple Files
  6. Merge from File List
  7. Handle Missing Genotypes
  8. Force Sample Names
  9. Merge Specific Regions
  10. bcftools concat
  11. Concatenate Chromosomes
  12. Concatenate All Chromosomes
  13. From File List
  14. Allow Overlapping Regions
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
bcftools merge -r chr1:1000000-2000000 sample1.vcf.gz sample2.vcf.gz -Oz -o merged.vcf.gz
bcftools concat chr1.vcf.gz chr2.vcf.gz chr3.vcf.gz -Oz -o genome.vcf.gz
bcftools concat chr*.vcf.gz -Oz -o genome.vcf.gz
More from OpenClaw-Medical-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 FreedomIntelligence/OpenClaw-Medical-Skills --skill bio-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 FreedomIntelligence/OpenClaw-Medical-Skills, a repository with 2,909 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