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.

majiayu000github.com/majiayu000GitHub ↗
claude-codeMIT
Install
npx skills add majiayu000/claude-skill-registry --skill haplotype-phasing-gptomics-bioskills --agent claude-code

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

Facts
Files in the skill folder: 2
SKILL.md size: 4 KB
Bundled scripts: none
Path: skills/ai-ml/haplotype-phasing-gptomics-bioskills/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 534
Language: HTML

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

From the SKILL.md

# Haplotype Phasing ## 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 \ map=genetic_map.txt \ nthreads=8 \ window=40 \ overlap=4 \ ne=20000 \ # Effective population size seed=12345 # For reproducibility ``` ## Phase Per Chromosome ```bash # Process each chromosome separately for chr in {1..22}; do java -Xmx16g -jar beagle.jar \ gt=input.chr${chr}.vcf.gz \ map=genetic_maps/plink.chr${chr}.GRCh38.map \ out=phased.chr${chr} \ nthreads=8 done # Concatenate chromosomes bcftools concat phased.chr*.vcf.gz -Oz -o phased.all.vcf.gz bcftools index phased.all.vcf.gz ``` ## SHAPEIT5 Phasing (for Large Datasets) ```bash # Phase common variants first shapeit5_phase_common \ --input input.vcf.gz \ --map genetic_map.txt \ --output phased_common.bcf \ --thread 8 \ --

What's inside
Steps it walks through
  1. Beagle 5.4 Phasing (Recommended)
  2. Beagle Options
  3. Phase Per Chromosome
  4. SHAPEIT5 Phasing (for Large Datasets)
  5. SHAPEIT5 with Reference Panel
  6. Beagle with Reference Panel
  7. Input Preparation
  8. Check Phasing Results
  9. Genetic Maps
  10. Key Parameters
  11. Memory Requirements
  12. Phasing Accuracy Metrics
  13. Related Skills
Ships with 1 file
  • metadata.json
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 claude-skill-registry
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 majiayu000/claude-skill-registry --skill haplotype-phasing-gptomics-bioskills --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 majiayu000/claude-skill-registry, a repository with 534 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