--- id: pysylph version: "0.1.2" license: MIT license_treatment: permissive maintenance: dormant --- # pysylph — PyO3 bindings and Python interface to sylph, an ultrafast method for containment ANI querying and taxonomic profiling. License: permissive · Maintenance: dormant · Downloads: 119.0K/mo ## What it is and what it does Pysylph is a PyO3-based Python wrapper around sylph, a specialized bioinformatics tool for rapid ANI containment queries and metagenomic taxonomic profiling. It lets you sketch genome collections into searchable databases and query metagenomic samples against them to estimate species composition and sequence similarity. All computation happens in memory using Python objects you control, eliminating the need for temporary files or external binaries. The package targets bioinformaticians and researchers working with shotgun metagenomic data. It uses a statistical model based on Poisson coverage to compute coverage-adjusted ANI rather than naive ANI, making it suitable for real-world sequencing data with uneven coverage. Pre-built wheels for x86-64 and Arm64 platforms reduce installation friction, though the package remains in alpha and explicitly warns of API instability between minor versions. Use it for: - Build and query genome sketch databases for rapid species identification in metagenomic samples - Perform taxonomic profiling of shotgun sequencing reads against reference genome collections - Integrate ANI containment queries into Python-based bioinformatics pipelines without CLI wrappers - Parallelize genome sketching or sample querying using ThreadPool for large-scale analyses - Load and query databases created by the standalone sylph binary within Python workflows ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Pysylph provides Python bindings to sylph, enabling fast ANI (Average Nucleotide Identity) querying and taxonomic profiling of metagenomic samples against genome databases. Yes, if you are doing metagenomic profiling or ANI queries in Python and accept the alpha-stage API instability. The permissive MIT license, zero runtime dependencies, and pre-built wheels make installation straightforward. However, the 647-day gap since last release and dormant maintenance status mean you should verify that the current API meets your needs and be prepared to pin the version or fork if breaking changes occur in future releases. ## Install pip install pysylph uv add pysylph poetry add pysylph ## Installing pysylph Before you install: Medium install friction due to compiled Rust components, but pre-built wheels are available for common platforms (x86-64, Arm64) across Python 3.7–3.13. The package is dormant (last commit 2024-12-12, no releases in 647 days), which may affect responsiveness to issues. License in practice: MIT license is permissive and poses no restrictions on use, modification, or distribution. The package vendors additional Rust dependencies under their own terms via cargo vendor. Quickstart: pip install pysylph import pysylph sketcher = pysylph.Sketcher() sketch = sketcher.sketch_genome(name="genome1", contigs=["ACGTACGT"]) database = pysylph.Database([sketch]) reads = ["ACGTACGT"] sample = sketcher.sketch_single(name="sample1", reads=reads) profiler = pysylph.Profiler() results = profiler.query(sample, database) Requires Python 3.7 or later and a platform with pre-built wheels (x86-64 or Arm64 Linux, macOS, or Windows) or a Rust toolchain to compile from source. Verify before relying: - Whether the experimental API (noted as work-in-progress with likely breaks between minor versions) is stable enough for production use - Performance characteristics and scalability limits for large genome databases or high-throughput sample querying ## Package facts - License: MIT (permissive) - Python support: supports_current - Install friction: medium - Maintenance: dormant - Downloads: 119.0K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags ANI querying python, metagenomic profiling, taxonomic profiling genomics, genome containment analysis, sylph python bindings, fast sequence comparison, metagenome analysis, bioinformatics, genomics, metagenomics [View on SkillFed](https://skillfed.io/packages/pysylph) · [View on PyPI](https://pypi.org/project/pysylph/)