https://github.com/althonos/pyncbitk

Cython bindings and Python interface to the NCBI C++ ToolKit (including BLAST+).

https://github.com/althonos/pyncbitk

Science Score: 49.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
    Found 3 DOI reference(s) in README
  • Academic publication links
    Links to: ncbi.nlm.nih.gov
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (12.1%) to scientific vocabulary

Keywords

bioinformatics blast cython-library python-bindings python-library sequence-analysis
Last synced: 5 months ago · JSON representation

Repository

Cython bindings and Python interface to the NCBI C++ ToolKit (including BLAST+).

Basic Info
  • Host: GitHub
  • Owner: althonos
  • License: mit
  • Language: Cython
  • Default Branch: main
  • Homepage:
  • Size: 1.52 MB
Statistics
  • Stars: 7
  • Watchers: 2
  • Forks: 0
  • Open Issues: 0
  • Releases: 1
Topics
bioinformatics blast cython-library python-bindings python-library sequence-analysis
Created over 1 year ago · Last pushed about 1 year ago
Metadata Files
Readme Changelog Contributing License

README.md

🧬🧰 PyNCBItk Stars

(Unofficial) Cython bindings and Python interface to the NCBI C++ Toolkit.

Actions Coverage License PyPI Bioconda AUR Wheel Python Versions Python Implementations Source Mirror Issues Docs Changelog Downloads

⚠️ This package is a work-in-progress and in a very experimental state. Expect segmentation faults, compilation issues, missing features, incomplete documentation.

🗺️ Overview

The NCBI C++ Toolkit is a framework of C++ libraries to work with biological sequence data developed at the National Center for Biotechnology Information. It features a flexible object model for representing sequences of various origin, including composite or virtual sequences; a resource manager to easily manipulate heterogeneous data sources; and a comprehensive API to the various BLAST algorithms[1] developed at the NBCI.

PyNCBItk is a Python library that provides bindings to the NCBI C++ Toolkit data model and BLAST+ interface using Cython. It exposes the internals of the C++ Toolkit, allowing BLAST queries to be run directly from the Python interpreter without external I/O.

📋 Roadmap

The package is in a very experimental state, and only a few core features are supported at the moment:

  • [x] Loading sequences from a FASTA file.
  • [x] Creating basic sequences through the Python API.
  • [x] Running BLAST searches with default parameters.
  • [ ] Thorough BLAST configuration.
  • [ ] Error and warning management.
  • [ ] Support for all kinds of sequence storage.
  • [ ] Multi-threading for database searches using Python threads.
  • [ ] Advanced interface for the object manager.
  • [ ] Interface for all sequence and alignment types.

🔧 Installing

PyNCBItk is available for all modern Python (3.7+). Compilation is done through CMake using Scikit-build-core.

To install the project locally, clone the repository and its submodules, and install the repository with pip: $ git clone --recursive https://github.com/althonos/pyncbitk $ pip install ./pyncbitk -v

The compilation uses the Conan C/C++ package manager to handle compilation of the NCBI C++ Toolkit: the project will take ages to compile the first time, but afterwards only the Cython code will have to be recompiled.

💡 Example

```python from pyncbitk.objects.seqset import BioSeqSet from pyncbitk.objtools import DatabaseReader, FastaReader from pyncbitk.algo import BlastN

read the sequences from FASTA-formatted files

queries = BioSeqSet(FastaReader("queries.fna", split=False)) subjects = BioSeqSet(FastaReader("subjects.fna", split=False))

run blastn with default parameters

blastn = BlastN() results = blastn.run(queries, subjects) ```

The result is a SearchResultsSet which contains one SearchResults object per query/subject pair. The SearchResults object summarizes the result and contains the hit alignments in a SeqAlignSet.

See the Examples section in the online documentation for more information.

💭 Feedback

⚠️ Issue Tracker

Found a bug ? Have an enhancement request ? Head over to the GitHub issue tracker if you need to report or ask something. If you are filing in on a bug, please include as much information as you can about the issue, and try to recreate the same bug in a simple, easily reproducible situation.

🏗️ Contributing

Contributions are more than welcome! See CONTRIBUTING.md for more details.

📋 Changelog

This project adheres to Semantic Versioning and provides a changelog in the Keep a Changelog format.

⚖️ License

This library is provided under the MIT License. The NCBI C++ Toolkit is a "United States Government Work" and therefore lies in the public domain, but may be subject to copyright by the U.S. in foreign countries. Some restrictions apply, see the NCBI C++ Toolkit license.

This project is in no way not affiliated, sponsored, or otherwise endorsed by the NCBI or any associated entity. It was developed by Martin Larralde during his PhD at the Leiden University Medical Center in the Zeller team.

📚 References

  • [1] Altschul, S. F., Gish, W., Miller, W., Myers, E. W., & Lipman, D. J. (1990). Basic local alignment search tool. Journal of molecular biology, 215(3), 403–410. doi:10.1016/S0022-2836(05)80360-2

Owner

  • Name: Martin Larralde
  • Login: althonos
  • Kind: user
  • Location: Heidelberg, Germany
  • Company: EMBL / LUMC, @zellerlab

PhD candidate in Bioinformatics, passionate about programming, SIMD-enthusiast, Pythonista, Rustacean. I write poems, and sometimes they are executable.

GitHub Events

Total
  • Release event: 1
  • Watch event: 5
  • Public event: 1
  • Push event: 10
Last Year
  • Release event: 1
  • Watch event: 5
  • Public event: 1
  • Push event: 10

Issues and Pull Requests

Last synced: 6 months ago

All Time
  • Total issues: 0
  • Total pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Total issue authors: 0
  • Total pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels

Packages

  • Total packages: 1
  • Total downloads:
    • pypi 20 last-month
  • Total dependent packages: 0
  • Total dependent repositories: 0
  • Total versions: 1
  • Total maintainers: 1
pypi.org: pyncbitk

Cython bindings and Python interface to the NCBI C++ Toolkit.

  • Documentation: https://pyncbitk.readthedocs.io/en/stable/
  • License: MIT License Copyright (c) 2024 Martin Larralde <martin.larralde@embl.de> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  • Latest release: 0.1.0a1
    published about 1 year ago
  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 20 Last month
Rankings
Dependent packages count: 9.9%
Average: 32.8%
Dependent repos count: 55.7%
Maintainers (1)
Last synced: 6 months ago

Dependencies

.github/workflows/package.yml actions
  • actions/checkout v4 composite
  • actions/download-artifact v4 composite
  • actions/setup-python v5 composite
  • actions/upload-artifact v4 composite
  • pypa/cibuildwheel v2.21.3 composite
  • pypa/gh-action-pypi-publish release/v1 composite
  • rasmus-saks/release-a-changelog-action v1.2.0 composite
.github/workflows/test.yml actions
  • actions/checkout v4 composite
  • actions/setup-python v5 composite
  • actions/upload-artifact v4 composite
  • pypa/cibuildwheel v2.21.3 composite
pkg/build/Dockerfile docker
  • quay.io/pypa/manylinux_2_28_x86_64 latest build
.github/workflows/requirements.txt pypi
  • build *
  • coverage *
  • cython *
  • scikit-build-core-conan *
docs/requirements.txt pypi
  • cython >=3.0
  • ipykernel *
  • ipython *
  • nbsphinx *
  • pydata-sphinx-theme *
  • pygments *
  • pygments-style-monokailight *
  • pyncbitk ==0.1.0
  • recommonmark *
  • semantic_version *
  • setuptools >=46.4
  • sphinx >=5.0
  • sphinx-design *
  • sphinxcontrib-jquery *
pyproject.toml pypi