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.

Source Distribution

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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

Details for the file simplevcf-0.2.0.tar.gz.

File metadata

  • Download URL: simplevcf-0.2.0.tar.gz
  • Upload date:
  • Size: 7.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

File hashes

Hashes for simplevcf-0.2.0.tar.gz
Algorithm Hash digest
SHA256 3d8624cb6a9c000db8eb7d2fb0847c5bfe061eba964f06a6f963575980f930c8
MD5 67114307388334831a817a5839ee9c48
BLAKE2b-256 453040e4998a1c4452a802eef7484aba96b592252f4e08ea4d52d117c509ef9f

See more details on using hashes here.

File details

Details for the file simplevcf-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: simplevcf-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 13.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

File hashes

Hashes for simplevcf-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 51ced259ed16f23b7ecb49293b4798a5fb4c98d9c014b70ea8f65cf49ece842c
MD5 1d147768eaa8365ef3610728128435a0
BLAKE2b-256 d7697fcfdc8da4d98d5264a9c8c4d67e97003f5d776f030984e63b82e109a120

See more details on using hashes here.

Supported by

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