Skip to content

extract_tracts.py outputs gzipped vcfs instead of bgzipped #55

Description

@pettyalex

Hello,

To work with most VCF tooling, VCFs should be bgzipped. Python scripts can easily output bgzipped VCFs using pysam: https://pysam.readthedocs.io/en/latest/api.html .

If the VCF writing code were reworked to use pysam.VariantFile, it could natively handle both bgzipped and uncompressed files. https://pysam.readthedocs.io/en/latest/usage.html#working-with-vcf-bcf-formatted-files

This would substantially improve the usability of tractor on larger datasets.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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