Skip to main content

A simple VCF parser/weriter

Project description

simplevcf

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

Simple VCF parser/writer with pure python

Documentation

Examples

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,
                                  reader.samples)
        for record in reader:
            # manipulate a record
            writer.write_record(one)

Access to INFO and CALL

    with simplevcf.vcfopen(test_file) as reader:
        for one in reader:
            print(
                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.

Files for simplevcf, version 0.2.0
Filename, size File type Python version Upload date Hashes
Filename, size simplevcf-0.2.0-py3-none-any.whl (13.1 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size simplevcf-0.2.0.tar.gz (7.1 kB) File type Source Python version None Upload date Hashes View

Supported by

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