Skip to main content

A python package to query the National Biomedical Imaging Archive (NBIA) database.

Project description

PyTests Documentation Status codecov Python version PyPI version Downloads PyPI - Downloads GitHub repo size Docker Pulls

GitHub milestone detailsGitHub milestone details

NBIA Toolkit

nbiatoolkit is a python package that provides programmatic access to query and download images from the National Biomedical Imaging Archive (NBIA) and The Cancer Imaging Archive (TCIA) databases.

Features

  • Use NBIA Guest account to access public data OR authenticate using OAuth with user credentials for limited access data (requires approved data access).
  • Query NBIA database for metadata on collections, patients, studies, series, and images
  • Download images from NBIA
    • Validate doownloads with MD5 checksums for downloaded images
    • Auto-sort DICOM files using a user-defined pattern of DICOM tags with specialized DICOMSorter class

See Documentation at NBIA-Toolkit Read The Docs

Installation

nbiatoolkit is currently under development. It is made available via PyPI and can be installed using pip:


pip install nbiatoolkit

CLI Usage

getCollections

nbia-toolkit also provides a command line interface (CLI) to query the NBIA database for some queries.

> getCollections --prefix NSCLC
NSCLC Radiogenomics
NSCLC-Radiomics
NSCLC-Radiomics-Genomics
NSCLC-Radiomics-Interobserver1

> getCollections --prefix TCGA | head -5
TCGA-BLCA
TCGA-BRCA
TCGA-CESC
TCGA-COAD
TCGA-ESCA

Contributing

Interested in contributing? Check out the contributing guidelines. Please note that this project is released with a Code of Conduct. By contributing to this project, you agree to abide by its terms.

License

nbiatoolkit was created by Jermiah Joseph. It is licensed under the terms of the MIT license.

User Agreements and Disclaimers

The NBIA-toolkit is NOT a product of the National Cancer Institute (NCI) and is not endorsed by the NCI. The NBIA-toolkit is provided as an open-source tool based on the NBIA REST API. The NBIA-toolkit is provided "AS IS" without warranty of any kind.

In no event shall the authors or contributors be liable for any claim, damages or other liability, arising from, out of or in connection with the NBIA-toolkit or the use or other dealings in the NBIA-toolkit.

Users of the NBIA-toolkit are required to abide by the NBIA REST API Terms of Service and the NBIA Data Usage Policies and Restrictions

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

nbiatoolkit-0.14.0.tar.gz (17.3 kB view details)

Uploaded Source

Built Distribution

nbiatoolkit-0.14.0-py3-none-any.whl (20.6 kB view details)

Uploaded Python 3

File details

Details for the file nbiatoolkit-0.14.0.tar.gz.

File metadata

  • Download URL: nbiatoolkit-0.14.0.tar.gz
  • Upload date:
  • Size: 17.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for nbiatoolkit-0.14.0.tar.gz
Algorithm Hash digest
SHA256 f6e553fdd280b6f1773ed4c8bdf9a11a6930143a70ab08cb67c57a9b359ee654
MD5 f403fc6dc1486f8f7afec2901af00c6c
BLAKE2b-256 23f053be91049d45b90c4b30815ec260baf406ba7b34868f7e4f5ba25897484b

See more details on using hashes here.

File details

Details for the file nbiatoolkit-0.14.0-py3-none-any.whl.

File metadata

  • Download URL: nbiatoolkit-0.14.0-py3-none-any.whl
  • Upload date:
  • Size: 20.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for nbiatoolkit-0.14.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4181d8462e6ed66ed9a0f58491afc219c59413dc674be0243118b8e9df1f5c5b
MD5 3b21922538a32bb6d8206aa1037c019d
BLAKE2b-256 9025bb97a6521621ba1294294e5ed7083ba9051b2a3ea80a6598a7a7fb6f9fa1

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page