Python API for Genomic Data Commons
Python
Latest commit 2a9a1a5 Sep 27, 2016 @arahuja arahuja add .travis.yml
Permalink
Failed to load latest commit information.
pygdc add versioneer Sep 15, 2016
.gitattributes add versioneer Sep 15, 2016
.gitignore add .gitignore Sep 15, 2016
.travis.yml add .travis.yml Sep 27, 2016
LICENSE Initial commit Sep 15, 2016
MANIFEST.in add versioneer Sep 15, 2016
README.md Update README.md Sep 15, 2016
requirements.txt add setup adn requirements Sep 15, 2016
setup.cfg add versioneer Sep 15, 2016
setup.py add .travis.yml Sep 27, 2016
versioneer.py add versioneer Sep 15, 2016

README.md

PyGDC

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