Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export to BGEN #56

Open
hyanwong opened this issue Aug 25, 2024 · 1 comment
Open

Export to BGEN #56

hyanwong opened this issue Aug 25, 2024 · 1 comment

Comments

@hyanwong
Copy link
Member

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?

@jeromekelleher
Copy link
Member

It's not trivial. What datasets are you thinking about?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants