Skip to main content

A simple VCF parser/weriter

Project description


Python package PyPI PyPI - Python Version PyPI - License PyPI - Format PyPI - Status

Simple VCF parser/writer with pure python



Read VCF

    with simplevcf.vcfopen('some.vcf.gz') as reader:
        for record in reader:
            # process a record

Read, manipulate and write

    with simplevcf.vcfopen('some.vcf.gz') as reader, with open('output.vcf) as f:
        writer = simplevcf.Writer(f, reader.headers,
        for record in reader:
            # manipulate a record

Access to INFO and CALL

    with simplevcf.vcfopen(test_file) as reader:
        for one in reader:
                one.INFO['AC'], one.CALL['ERP107576_NovaSeq_SAMEA104707359']['GT'][0])

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

simplevcf-0.2.0.tar.gz (7.1 kB view hashes)

Uploaded source

Built Distribution

simplevcf-0.2.0-py3-none-any.whl (13.1 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page