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.
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.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# 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 \ --
- Beagle 5.4 Phasing (Recommended)
- Beagle Options
- Phase Per Chromosome
- SHAPEIT5 Phasing (for Large Datasets)
- SHAPEIT5 with Reference Panel
- Beagle with Reference Panel
- Input Preparation
- Check Phasing Results
- Genetic Maps
- Key Parameters
- Memory Requirements
- Phasing Accuracy Metrics
- Related Skills
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 chromosomesWhat 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.
