Pygenomics: manipulating genomic intervals and data files in Python
Open Access
- 25 May 2023
- journal article
- research article
- Published by Oxford University Press (OUP) in Bioinformatics
- Vol. 39 (6)
Abstract
Summary: We present pygenomics, a Python package for working with genomic intervals and bioinformatic data files. The package implements interval operations, provides both API and CLI, and supports reading and writing data in widely used bioinformatic formats, including BAM, BED, GFF3, and VCF. The source code of pygenomics is provided with in-source documentation and type annotations and adheres to the functional programming paradigm. These features facilitate seamless integration of pygenomics routines into scripts and pipelines. The package is implemented in pure Python using its standard library only and contains the property-based testing framework. Comparison of pygenomics with other Python bioinformatic packages with relation to features and performance is presented. The performance comparison covers operations with genomic intervals, read alignments, and genomic variants and demonstrates that pygenomics is suitable for computationally effective analysis. Availability and implementation: The source code is available at https://gitlab.com/gtamazian/pygenomics.Keywords
Funding Information
- Russian Science Foundation (20-14-00072)
This publication has 10 references indexed in Scilit:
- HTSlib: C library for reading/writing high-throughput sequencing dataGigaScience, 2021
- Hypothesis: A new approach to property-based testingJournal of Open Source Software, 2019
- PyRanges: efficient comparison of genomic intervals in PythonBioinformatics, 2019
- cyvcf2: fast, flexible variant analysis with PythonBioinformatics, 2017
- Pybedtools: a flexible Python library for manipulating genomic datasets and annotationsBioinformatics, 2011
- The variant call format and VCFtoolsBioinformatics, 2011
- The Sanger FASTQ file format for sequences with quality scores, and the Solexa/Illumina FASTQ variantsNucleic Acids Research, 2009
- The Sequence Alignment/Map format and SAMtoolsBioinformatics, 2009
- IPython: A System for Interactive Scientific ComputingComputing in Science & Engineering, 2007
- Nested Containment List (NCList): a new algorithm for accelerating interval query of genome alignment and interval databasesBioinformatics, 2007