Skip to content

Oxford phased haplotype file (.haps) + .sample export #55

@hyanwong

Description

@hyanwong

Both Relate and ARG-needle read data in "Oxford phased haplotype file" (.haps + .sample) format, as described at https://mathgen.stats.ox.ac.uk/genetics_software/shapeit/shapeit.html#hapsample (also see https://www.cog-genomics.org/plink/2.0/formats#haps). This could be a useful output format for a tree sequence, to supplement VCF?

Conversion can apparently be done from VCF using plink or one of the Relate utilities:

plink2 --vcf phased.vcf --export haps --out new_filename_prefix

or

PATH_TO_RELATE/bin/RelateFileFormats \
                 --mode ConvertFromVcf \
                 --haps example.haps \
                 --sample example.sample \
                 -i example 

(see https://myersgroup.github.io/relate/input_data.html#ConvertToFileFormat)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions