Skip to main content

GDCtools: Python and UNIX CLI utils to simplify interaction with the NIH/NCI Genomics Data Commons.

Project description

# gdctools
Python and UNIX CLI utilities to simplify search and retrieval of open-access data from the [NIH/NCI Genomics Data Commons](https://gdc.cancer.gov/), and automate tasks that are common to most data-driven science projects. For more information and examples see the [package overview](https://docs.google.com/viewer?url=https://github.com/broadinstitute/gdctools/files/825892/GDCtools-overview.pdf), [Wiki pages](https://github.com/broadinstitute/gdctools/wiki) or [tests/Makefile](tests/Makefile). To get started from a Unix command line, simply clone the repo and install:
```
% git clone https://github.com/broadinstitute/gdctools
% cd gdctools
% make install
```
This should take only a minute or two, and may install [requests](http://docs.python-requests.org/en/master/), [fasteners](https://github.com/harlowja/fasteners) or [matplotlib](http://matplotlib.org/) dependencies. *Note that if you are installing to a protected location you may need to preface the `make install` command with `sudo `*. After this you should be able to easily [mirror](https://github.com/broadinstitute/gdctools/wiki/GDC-Mirror) either [harmonized](https://gdc.cancer.gov/about-data/gdc-data-harmonization) or [legacy](https://gdc-portal.nci.nih.gov/legacy-archive) data directly from the command line
```
gdc_mirror --config tests/tcgaSmoketest.cfg
```
(this is what the `make test` target does), even for a single patient case
```
gdc_mirror --cases TCGA-EE-A3J8
```
or just one category of data for that patient
```
gdc_mirror --cases TCGA-EE-A3J8 --data-categories Copy_Number_Variation
```
or perform other operations such as seeing which NIH/NCI programs have exposed data for download
```
% gdc_list programs
[
"TCGA",
"TARGET"
]
```
or what programs have submitted data (that may not be exposed yet)
```
% gdc_list submission
[
"CCLE",
"REBC",
"TCGA",
"TARGET",
"CGCI",
"CDDP",
"ALCHEMIST",
"GDC",
"Exceptional_Responders",
"UAT08",
"TRIO",
"CPTAC"
]
```
After mirroring you may run [gdc_dice](https://github.com/broadinstitute/gdctools/wiki/GDC-Dicer) on the mirror tree, followed by [gdc_loadfile](https://github.com/broadinstitute/gdctools/wiki/Create-Loadfile) to generate a sample "freeze" list which identifies the data for loading into pipeline execution systems like Firehose or FireCloud. Finally, if you have *matplotlib* and *R* installed you may also run the [gdc_report](https://github.com/broadinstitute/gdctools/wiki/Sample-reports) tool to generate an HTML samples report ([similar to this](http://gdac.broadinstitute.org/runs/sampleReports/latest/)) that provides an annotated description of the processed data; note that this tool will attempt to automatically install [Nozzle](https://confluence.broadinstitute.org/display/GDAC/Nozzle) if it is not detected within the R installation. As noted earlier, the [tests/Makefile](tests/Makefile) provides examples of using the dice, loadfile and report tools.

Project details


Download files

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

Source Distribution

gdctools-0.1.7.tar.gz (59.2 kB view details)

Uploaded Source

File details

Details for the file gdctools-0.1.7.tar.gz.

File metadata

  • Download URL: gdctools-0.1.7.tar.gz
  • Upload date:
  • Size: 59.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for gdctools-0.1.7.tar.gz
Algorithm Hash digest
SHA256 2fcd597059637f9280f2552d1bb22aab8c3ec45d62f34f2d1cfdcad658962311
MD5 770156ff4a29edc4a091a79bdda5c0d2
BLAKE2b-256 069773d45785e2d85d12ab684c06fb0be8dc60a8d5a4c0bf145b3a0c4bf6dc56

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page