Natural Products Linker
Project description
Badges
| fair-software.eu recommendations | |
|---|---|
| (1/5) code repository | |
| (2/5) license | |
| (3/5) community registry | |
| (4/5) citation | |
| (5/5) checklist | |
| overall | |
| Other best practices | |
| Documentation | |
| Build & Test | |
| Static analysis | |
| Coverage | |
| Citation data consistency |
NPLinker is a python framework for data mining microbial natural products by integrating genomics and metabolomics data.
Original paper: Ranking microbial metabolomic and genomic links in the NPLinker framework using complementary scoring functions.
Setup and usage
Requirement
- Linux, MacOS or Windows with WSL
- Python version ≥3.11
Installation
NPLinker is a python package, using both pypi packages and non-pypi packages as dependencies. It requires ~4.5GB of disk space to install all the dependencies.
# Create a new virtual environment and activate it
conda create -n npl-3.11 python=3.11
conda activate npl-3.11
# install from nplinker releases (requiring ~300MB of disk space)
pip install nplinker
# install nplinker non-pypi dependencies and databases (~4GB)
install-nplinker-deps
Testing
To run the tests, you need to clone this repo and install the development dependencies:
# Create a new virtual environment
conda create -n npl-3.11 python=3.11
conda activate npl-3.11
# Clone the repository and install the development dependencies
git clone https://github.com/NPLinker/nplinker.git
cd nplinker
pip install -e ".[dev]"
install-nplinker-deps
Unit tests
To run the unit tests, you can use the following command:
pytest
Pytest will use all available CPU cores to run the unit tests in parallel.
Integration tests
To run the integration tests, you can use the following command:
pytest -n1 tests/integration
The -n1 is to use one CPU core to run the tests. Change it to -n2 if you want to use two CPU cores to run in parallel.
Usage
See the documentation for more information about how to use NPLinker.
Contributing
If you want to contribute to the development of nplinker, have a look at the contribution guidelines and README for developers.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file nplinker-2.0.1.tar.gz.
File metadata
- Download URL: nplinker-2.0.1.tar.gz
- Upload date:
- Size: 77.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
138730cf68c02b9671674cd07082777d5a4aaf5265b4cd29bcdceaf0fa732d55
|
|
| MD5 |
f95188cca1a70fa850c59fd64d3a0f1d
|
|
| BLAKE2b-256 |
823c8937b8d407f97467799becdc89494d664704ea1bb816ff4871b3b9cf381d
|
File details
Details for the file nplinker-2.0.1-py3-none-any.whl.
File metadata
- Download URL: nplinker-2.0.1-py3-none-any.whl
- Upload date:
- Size: 97.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
add9a348e53333db17163b19c84cd97b78b333c39b6be12a1aa21e5205d4a0d7
|
|
| MD5 |
d7760d4768b5a2e2240d6231cf2275f9
|
|
| BLAKE2b-256 |
83a54a344452a4d79fe173249df4b74f2db4de1a7b539b40c75108450d6bd046
|