Skip to main content

Natural Products Linker

Project description

Badges

fair-software.eu recommendations
(1/5) code repository github repo badge
(2/5) license github license badge
(3/5) community registry pypi badge
(4/5) citation Zenodo
(5/5) checklist OpenSSF Scorecard
overall fair-software badge
Other best practices
Documentation Static Badge 🔗
Build & Test build
Static analysis workflow scq badge
Coverage workflow scc badge
Citation data consistency cffconvert

NPLinker Logo

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

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


Download files

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

Source Distribution

nplinker-2.0.2.tar.gz (77.7 kB view details)

Uploaded Source

Built Distribution

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

nplinker-2.0.2-py3-none-any.whl (97.0 kB view details)

Uploaded Python 3

File details

Details for the file nplinker-2.0.2.tar.gz.

File metadata

  • Download URL: nplinker-2.0.2.tar.gz
  • Upload date:
  • Size: 77.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.11

File hashes

Hashes for nplinker-2.0.2.tar.gz
Algorithm Hash digest
SHA256 f3525485054c282b8fbce9d6f16d078bc25fa7ac40db503d44ab08e86b11de3b
MD5 063d68f8908a20bf699211a5c618ba76
BLAKE2b-256 f44fc4bdc12f3c8a568f864a882da195fdce62f9ab905e822d078dfa4ca50a95

See more details on using hashes here.

File details

Details for the file nplinker-2.0.2-py3-none-any.whl.

File metadata

  • Download URL: nplinker-2.0.2-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

Hashes for nplinker-2.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 6bbfb59ea76048f205a62ebee9f6e40c6f46ee93f85ce929cdac6444a59eb5fd
MD5 bb689387d4407035d5b74a921c6f18b7
BLAKE2b-256 915f3a2837abc7ef1cdbb81c3c129b287788575081f0b4e2caea22abe2fdd4cb

See more details on using hashes here.

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