Metadata-Version: 2.1
Name: simplevcf
Version: 0.1.0
Summary: A simple VCF parser/weriter
Home-page: https://github.com/informationsea/simplevcf-py
Author: Yasunobu Okamura
Author-email: okamura@informationsea.info
License: UNKNOWN
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Operating System :: OS Independent
Classifier: Topic :: Scientific/Engineering :: Bio-Informatics
Requires-Python: >=3.6
Description-Content-Type: text/markdown

# simplevcf

![Python package](https://github.com/informationsea/simplevcf-py/workflows/Python%20package/badge.svg)

Simple VCF parser/writer with pure python

## Examples

### Read VCF

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


### Read, manipulate and write

```python
    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

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

