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
- Host: GitHub
- URL: https://github.com/hammerlab/pygdc
- Owner: hammerlab
- License: apache-2.0
- Created: 2016-09-15T15:21:35.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-09-27T23:32:23.000Z (over 9 years ago)
- Last Synced: 2025-04-04T09:44:40.561Z (about 1 year ago)
- Language: Python
- Size: 31.3 KB
- Stars: 18
- Watchers: 11
- Forks: 2
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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')
```