Skip to content

Export to BGEN #56

@hyanwong

Description

@hyanwong

A number of large datasets are nowadays saved in BGEN format. Should we provide the ability to export variant data from tree sequences in BGEN format? Otherwise I assume we would have to go via vcf using e.g. qctool, and I don;t know if this loses any information:

with open("tmp.vcf", "wt") as f:
    ts.write_vcf(f)
subprocess.run(["./qctool", "-g", "tmp.vcf", "-og", "tmp.bgen"])

It could be that Gavin Band could help write a BGEN exporter? Has anyone asked him?

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