A library designed to simplify various research tasks for users looking to leverage the NMDC (National Microbiome Data Collaborative) APIs. The library provides a collection of general-purpose functions that facilitate easy access, manipulation, and analysis of microbiome data.
Example use of the Biosample class:
from nmdc_api_utilities.biosample_search import BiosampleSearch
# Create an instance of the module
biosample_client = BiosampleSearch()
# Use the variable to call the available functions
biosample_client.get_collection_by_id("biosample", "id")
To see debugging information, include these two lines where ever you are running the functions:
import logging
logging.basicConfig(level=logging.DEBUG)
# when this is run, you will see debug information in the console.
biosample_client.get_collection_by_id("biosample", "id")
To install, run:
python3 -m pip install nmdc_api_utilities
Peridodically run
python3 -m pip install --upgrade nmdc_api_utilities
to ensure you have the latest updates from this package.
Documentation about available functions and helpful usage notes can be found at https://microbiomedata.github.io/nmdc_api_utilities/.