Agent skill

bio-phasing-imputation-haplotype-phasing

Phase genotypes into haplotypes using Beagle or SHAPEIT. Resolves which alleles are inherited together on each chromosome. Use when preparing VCF files for imputation, HLA typing, or population genetic analyses requiring phased haplotypes.

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

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

Facts
Files in the skill folder: 3
SKILL.md size: 5 KB
Bundled scripts: yes
Path: skills/bioskills/haplotype-phasing/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: bcftools 1.19+ Before using code patterns, verify installed versions match. If versions differ: - 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. # Haplotype Phasing **"Phase my genotypes into haplotypes"** → Resolve which alleles are inherited together on each chromosome for downstream imputation, HLA typing, or population genetic analyses. - CLI: `java -jar beagle.jar gt=input.vcf out=phased` (Beagle 5.4) - CLI: `shapeit4 --input input.vcf --output phased.vcf` (SHAPEIT) ## Beagle 5.4 Phasing (Recommended) ```bash # Download Beagle 5.4 wget https://faculty.washington.edu/browning/beagle/beagle.22Jul22.46e.jar # Basic phasing java -jar beagle.22Jul22.46e.jar \ gt=input.vcf.gz \ out=phased # Output: phased.vcf.gz (phased genotypes) # With genetic map (improves accuracy) java -jar beagle.22Jul22.46e.jar \ gt=input.vcf.gz \ map=plink.chr22.GRCh38.map \ out=phased ``` ## Beagle Options ```bash java -jar beagle.22Jul22.46e.jar \ gt=input.vcf.gz \ out=phased \ m

What's inside
Steps it walks through
  1. Version Compatibility
  2. Beagle 5.4 Phasing (Recommended)
  3. Beagle Options
  4. Phase Per Chromosome
  5. SHAPEIT5 Phasing (for Large Datasets)
  6. SHAPEIT5 with Reference Panel
  7. Beagle with Reference Panel
  8. Input Preparation
  9. Check Phasing Results
  10. Genetic Maps
  11. Key Parameters
  12. Memory Requirements
  13. Phasing Accuracy Metrics
  14. Related Skills
Ships with 2 files
  • examples/run_shapeit.sh
  • usage-guide.md
Commands it runs
Download Beagle 5.4
wget https://faculty.washington.edu/browning/beagle/beagle.22Jul22.46e.jar
Basic phasing
java -jar beagle.22Jul22.46e.jar \
With genetic map (improves accuracy)
Process each chromosome separately
for chr in {1..22}; do
java -Xmx16g -jar beagle.jar \
done
Concatenate chromosomes
More from awesome-bio-agent-skills
All skills →
About this skill
What does the bio-phasing-imputation-haplotype-phasing skill do?

Phase genotypes into haplotypes using Beagle or SHAPEIT. Resolves which alleles are inherited together on each chromosome. Use when preparing VCF files for imputation, HLA typing, or population genetic analyses requiring phased haplotypes.

How do I install it?

Run `npx skills add BioTender-max/awesome-bio-agent-skills --skill haplotype-phasing --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