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.1.0.tar.gz
(5.5 kB
view hashes)
Built Distribution
simplevcf-0.1.0-py3-none-any.whl
(10.9 kB
view hashes)
Close
Hashes for simplevcf-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 55dba8d96c580be853fa6510566380e47ca702bef9989c52c64e6debdb2396a2 |
|
MD5 | a1b81a1a45646154f1ddd6b495027e0c |
|
BLAKE2b-256 | fbcad47039a0c1cc7c711bef7de56d0a9c799ffad2feae8ffba77528648e7bfd |