Skip to content

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.

License

Notifications You must be signed in to change notification settings

microbiomedata/nmdc_api_utilities

Repository files navigation

nmdc_api_utilities

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.

Usage

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")

Logging - Debug Mode

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")

Installation

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

Documentation about available functions and helpful usage notes can be found at https://microbiomedata.github.io/nmdc_api_utilities/.

About

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.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages