Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

Python API for Genomic Data Commons

Project description

Python API for accessing Genomic Data Commons

Basic API

Cases

from pygdc import get_cases
from pygdc.filters import equals_filter


results = get_cases(
    filters=equals_filter('project.primary_site', 'Lung'),
    fields='demographic.gender,project.disease_type',
    max_results=50
)

Cohorts Example

Using cohorts

import pygdc

pygdc.build_cohort(
    primary_site='Lung',
    cohort_cache_dir='cache-dir')

Project details


Download files

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

Files for pygdc, version 0.0.2
Filename, size File type Python version Upload date Hashes
Filename, size pygdc-0.0.2.tar.gz (24.1 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page