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])
Metadata
Release files for simplevcf 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| simplevcf-0.2.0.tar.gz | 7.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| simplevcf-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 20.2 kB
Release files / simplevcf-0.2.0.tar.gz
| Download URL | simplevcf-0.2.0.tar.gz |
|---|---|
| Size | 7.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3d8624cb6a9c000db8eb7d2fb0847c5bfe061eba964f06a6f963575980f930c8
|
|
BLAKE2b-256 checksum How to use checksums |
453040e4998a1c4452a802eef7484aba96b592252f4e08ea4d52d117c509ef9f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / simplevcf-0.2.0-py3-none-any.whl
| Download URL | simplevcf-0.2.0-py3-none-any.whl |
|---|---|
| Size | 13.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
51ced259ed16f23b7ecb49293b4798a5fb4c98d9c014b70ea8f65cf49ece842c
|
|
BLAKE2b-256 checksum How to use checksums |
d7697fcfdc8da4d98d5264a9c8c4d67e97003f5d776f030984e63b82e109a120
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|