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 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page