Skip to main content

Quick validation of bioinformatics files

Project description

Biovalid


Quick validation of bioinformatics files


Pipeline information

  • Author(s): Gino Raaijmakers
  • Organization: Rijksinstituut voor Volksgezondheid en Milieu (RIVM)
  • Department: Infectieziekteonderzoek, Diagnostiek en Laboratorium Surveillance (IDS), Informatiebeheer (IBR)
  • Start date: 23 - 07 - 2025

About this project

Biovalid is a lightweight Python library and CLI tool for fast, robust validation of bioinformatics files such as BAM, FASTA, and GFF. It checks file integrity, headers, and format compliance, helping users catch common issues before downstream analysis.


Features

  • File Format Support: Validate BAM/BAI, FASTA/FASTQ, VCF and GFF files.
  • Lightweight: No dependencies.
  • Dual Usage: Use as a CLI tool or import as a Python library.
  • Customizable: Enable verbose logging, save logs to a file, or return boolean results.
  • Extensible: Designed to support additional file formats in the future.

Installation

Conda

conda create -n biovalid python>=3.10
conda activate biovalid
pip install biovalid

Pip

pip install biovalid

Parameters & Usage

Command-line help

python3 -m biovalid --help

Required parameters

  • -i, --input Path to the file or directory to validate

Optional parameters

  • -v, --verbose Enable verbose logging
  • -l, --log_file Path to a log file
  • -b, --bool_mode Return True/False instead of raising exceptions

Example command

python3 -m biovalid -i /path/to/file.bam

Library usage

from biovalid import BioValidator

validator = BioValidator(verbose=True)
validator.validate_files("path/to/file")

Output

  • Logging: Validation results and errors are printed to the console and optionally saved to a log file.
  • Return values: In bool mode, returns True if all files are valid, False otherwise.

Issues


Future ideas

  • Add support for more file formats (e.g., SAM, Phylip, genbank).
  • Improve error messages and reporting.
  • Make the tool more user-friendly for external users.

License

This project is licensed under the AGPL-3.0 license. See the LICENSE file for details.


Contact


Acknowledgements

Thanks to the IDS and IBR teams at RIVM for their support and feedback.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

biovalid-0.5.0.tar.gz (2.9 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

biovalid-0.5.0-py3-none-any.whl (58.9 kB view details)

Uploaded Python 3

File details

Details for the file biovalid-0.5.0.tar.gz.

File metadata

  • Download URL: biovalid-0.5.0.tar.gz
  • Upload date:
  • Size: 2.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for biovalid-0.5.0.tar.gz
Algorithm Hash digest
SHA256 af6627605e4ad3e7d456600ece858140d7c3c18f7f17b1884b26858151c5815a
MD5 6fc410758a44610ae9faf3ea7ba54d2b
BLAKE2b-256 4d3c6e893292931b984c5d8343ad75398ee6ecddc8ac27d3bbc1a92658baf9bd

See more details on using hashes here.

Provenance

The following attestation bundles were made for biovalid-0.5.0.tar.gz:

Publisher: release-please.yml on RIVM-bioinformatics/biovalid

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file biovalid-0.5.0-py3-none-any.whl.

File metadata

  • Download URL: biovalid-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 58.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for biovalid-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b4f1e2d026132fb19fb6bca03b1ff5e1b2368c360130be1152a1d94fc091a295
MD5 809d3b8de07e20a30c2185fa268ae4bc
BLAKE2b-256 7960a83c187ed02e2bb4e1d66a6ab1138375ee7d6edb07474f9846cc469d680d

See more details on using hashes here.

Provenance

The following attestation bundles were made for biovalid-0.5.0-py3-none-any.whl:

Publisher: release-please.yml on RIVM-bioinformatics/biovalid

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page