Skip to main content

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

Download files

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

Source Distribution

pygdc-0.0.2.tar.gz (24.1 kB view details)

Uploaded Source

File details

Details for the file pygdc-0.0.2.tar.gz.

File metadata

  • Download URL: pygdc-0.0.2.tar.gz
  • Upload date:
  • Size: 24.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pygdc-0.0.2.tar.gz
Algorithm Hash digest
SHA256 bf6302e13abcd9224542cacbbfc9ad1c68dd148c90365716b6787993418bdad0
MD5 ccea6c105ea6f6e9d4d4dff6d3e17332
BLAKE2b-256 bd8d574fbc5aa4f375ccea724b69705b3b836a0faa8f76d05678e1516c0308be

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.0.2 This release

1 file

0.0.1

1 file

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page