vcf-audit
A transparent and reproducible framework for integrated quality auditing of Variant Call Format (VCF) files.
Development status: v0.1.1 (pre-alpha) is the initial public release version. Historical scientific scope Version 1.0 is distinct from the package version.
Purpose and scientific foundation
VCF quality assessment involves both integrity checks and descriptive measurements. vcf-audit integrates these forms of evidence in a single report, with explicit eligibility conditions, denominators and interpretation boundaries.
The 14 categorical rules are informed by the VCF specification (v4.2), including metadata requirements, field declarations, selected type and cardinality constraints, and structural consistency. Four framework-defined descriptive rules characterise FILTER status, QUAL scores, eligible INFO/DP depth and FORMAT/GT completeness. These measurement contracts do not impose universal quality thresholds.
How it works
flowchart TD
A[VCF input] --> B[Input validation and parsing]
B -->|Failure| C[Diagnostic: no completed audit]
B --> D[14 categorical rules]
B --> E[4 descriptive rules]
D --> F[Integrated audit report]
E --> F
The report combines rule findings, descriptive metrics and overall severity. The software provides a command-line interface and structured Python interface.
In textual form: the input is validated and parsed; a failure produces a diagnostic without a completed audit. Successful parsing enables the categorical and descriptive rules, whose results are combined in the integrated audit report.
Installation and quick start
The following instructions describe the v0.1.1 installation routes. PyPI installation requires availability of the published package.
Create an isolated Python environment (Linux/WSL):
python3 -m venv .venv-vcf-audit
source .venv-vcf-audit/bin/activate
Install the versioned package from PyPI:
python -m pip install vcf-audit==0.1.1
Alternatively, after obtaining the release wheel:
python -m pip install vcf_audit-0.1.1-py3-none-any.whl
Verify installation:
vcf-audit --version
vcf-audit --help
To audit your own VCF:
vcf-audit tumour.vcf.gz
Replace the input filename with your own.
Worked synthetic examples
After obtaining the public source repository, run these commands from its root:
vcf-audit examples/ordinary.vcf
status=0
vcf-audit examples/defective.vcf || status=$?
printf 'Exit code: %s\n' "$status"
The ordinary example is expected to complete with PASS (exit 0). The defective example is expected to complete with ERROR (exit 1), identifying three deliberately introduced integrity defects.
Both contain five records. The eligible INFO/DP mean changes from 30 to 16 because the defects alter measurement eligibility, not biological coverage.
The examples are separate source-repository resources; their presence in the installed wheel is not required.
Python >=3.10 is declared; clean-environment qualification
used Python 3.12.3 on WSL/Linux. No mandatory runtime
dependencies; source builds may require build dependencies.
Supported inputs: plain .vcf, gzip .vcf.gz, sequential
BGZF .vcf.bgz. BCF is unsupported. No tabix index is
required for sequential input.
| Exit | Meaning |
|---|---|
| 0 | Completed PASS audit or successful help/version |
| 1 | Completed adverse audit |
| 2 | Input, parser, unsupported-format or argument error |
PASS means no WARNING or ERROR findings under the implemented rules. INFORMATION findings do not escalate severity. See the user guide for report capture and Python usage.
Practical application
| Example | Records | Findings | Outcome |
|---|---|---|---|
| Ordinary synthetic VCF | 5 | 27 | PASS |
| Deliberately defective synthetic VCF | 5 | 27 | ERROR (expected) |
| HG002 germline subset | 193 | 124 | PASS |
| Tumour–normal somatic VCF | 124 | 176 | PASS |
The somatic example contained 79.03% records with failing FILTER states and 100% missing QUAL scores, yet completed with audit PASS. This illustrates the distinction between descriptive quality evidence and integrity violations. See practical examples for interpretation and provenance.
Validation and reproducibility
Controlled validation covered 124 physical synthetic specimens. Following a targeted parser correction, 476 source tests passed; 123 historical specimen observations remained identical and one changed as prospectively specified. The installed v0.1.1 wheel reproduced all 124 corrected-source observations (106 reports, 18 parser exceptions). Selected somatic descriptive measurements agreed with independent calculations across 37 quantitative fields. See reproducibility for historical results and qualifications.
Scope and limitations
The framework does not establish biological truth, clinical suitability, exhaustive VCF conformance or universal quality thresholds. It does not call, filter or rewrite variants. INFO/DP is not interchangeable with FORMAT/DP. Called genotype representation does not establish genotype accuracy. Records are retained in memory; large-file scalability and cross-platform qualification have not been established. Practical applications demonstrate bounded applicability, not diagnostic validation.
Documentation
Citation, licence and contributions
Software citation metadata is provisional; DOI and release date are pending. Scientific feedback and reproducibility evaluations are welcome. Attribution reflects actual contributions.
Author: Dr Samson A. Olofinsae. MIT licence.
Metadata
Release files for vcf-audit 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| vcf_audit-0.1.1.tar.gz | 68.5 kB | Without provenance | Details for vcf_audit-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| vcf_audit-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for vcf_audit-0.1.1-py3-none-any.whl |
Total release size: 95.5 kB
Release files / vcf_audit-0.1.1.tar.gz
| Download URL | vcf_audit-0.1.1.tar.gz |
|---|---|
| Size | 68.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4cf271e2c755ce7472881c11d1eff1f0cebe47ad55ec8c04a2fa1d8611fef41b
|
|
BLAKE2b-256 checksum How to use checksums |
9e0e7dfa7d2788ee962a7acd2a61f671b7216bb3b3357ded6fa1e74620ce4b13
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.3
|
Release files / vcf_audit-0.1.1-py3-none-any.whl
| Download URL | vcf_audit-0.1.1-py3-none-any.whl |
|---|---|
| Size | 26.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6cbd4f6888c37800e57a3cf1c62651c1695a9b29a9e3fb7cbf9e250097e6eeb7
|
|
BLAKE2b-256 checksum How to use checksums |
ff2c48cb386cc1afd599108a1385c0c9d83a3fd7cdb83a4e0f998c632f488272
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.3
|
Security for vcf-audit 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.