An open API service indexing awesome lists of open source software.

https://github.com/hammerlab/pygdc

Python API for Genomic Data Commons
https://github.com/hammerlab/pygdc

Last synced: 8 months ago
JSON representation

Python API for Genomic Data Commons

Awesome Lists containing this project

README

          

# PyGDC

Python API for accessing Genomic Data Commons

### Basic API

#### Cases
```python
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](http://github.com/hammerlab/cohorts)

```python
import pygdc

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