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.
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.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
## 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
- Version Compatibility
- Operations Overview
- bcftools merge
- Basic Merge
- Merge Multiple Files
- Merge from File List
- Handle Missing Genotypes
- Force Sample Names
- Merge Specific Regions
- bcftools concat
- Concatenate Chromosomes
- Concatenate All Chromosomes
- From File List
- Allow Overlapping Regions
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
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.
