A simple VCF parser/weriter
Project description
simplevcf
Simple VCF parser/writer with pure python
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
Release history Release notifications | RSS feed
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)
Built Distribution
simplevcf-0.2.0-py3-none-any.whl
(13.1 kB
view hashes)
Close
Hashes for simplevcf-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 51ced259ed16f23b7ecb49293b4798a5fb4c98d9c014b70ea8f65cf49ece842c |
|
MD5 | 1d147768eaa8365ef3610728128435a0 |
|
BLAKE2b-256 | d7697fcfdc8da4d98d5264a9c8c4d67e97003f5d776f030984e63b82e109a120 |